From 4eb5cc7ee40a01d16b150898eff1a99569a4e93a Mon Sep 17 00:00:00 2001 From: Snaipe Date: Mon, 16 Mar 2015 10:30:43 +0100 Subject: [PATCH 1/9] Added base appveyor config --- appveyor.yml | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..229be4a --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,54 @@ +version: 3.0.0.{build}-{branch} + +os: Windows Server 2012 + +init: + - git config --global core.autocrlf input + - c:\cygwin\setup-x86.exe -qnNdO -R C:/cygwin -s http://cygwin.mirror.constant.com -l C:/cygwin/var/cache/setup \ + -P autoconf \ + -P automake \ + -P gcc-core \ + -P mingw-runtime \ + -P mingw-binutils \ + -P mingw-gcc-core \ + -P mingw-pthreads \ + -P mingw-w32api \ + -P libtool \ + -P make \ + -P python \ + -P gettext-devel \ + -P gettext \ + -P expat \ + -P intltool \ + -P libiconv \ + -P pkg-config \ + -P check \ + -P git \ + -P wget \ + -P curl + +clone_depth: 5 + +matrix: + fast_finish: true # set this flag to immediately finish build once one of the jobs fails. + +platform: + - x86 + - Any CPU + +configuration: Release + +install: + - cmd: c:\cygwin\bin\bash -C './autogen && ./configure' + +build_script: + - cmd: c:\cygwin\bin\bash -C 'make' + +test_script: + - cmd: c:\cygwin\bin\bash -C 'make check' + +notifications: + + - provider: Email + to: [franklinmathieu@gmail.com] + on_build_status_changed: true From aee490227c42884813e6a6ec116f15a3106655c2 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Mon, 16 Mar 2015 10:31:45 +0100 Subject: [PATCH 2/9] Fixed appveyor build version --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 229be4a..abde5ea 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 3.0.0.{build}-{branch} +version: 0.3.0.{build}-{branch} os: Windows Server 2012 From 1ad80a2f47d18dc8c08100b1605fa884f4880cff Mon Sep 17 00:00:00 2001 From: Snaipe Date: Mon, 16 Mar 2015 10:37:28 +0100 Subject: [PATCH 3/9] Added cygwin download --- appveyor.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index abde5ea..e33b3c8 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,8 +3,9 @@ version: 0.3.0.{build}-{branch} os: Windows Server 2012 init: + - ps: (New-Object System.Net.WebClient).DownloadFile("https://cygwin.com/setup-x86.exe", "$pwd\setup-x86.exe") - git config --global core.autocrlf input - - c:\cygwin\setup-x86.exe -qnNdO -R C:/cygwin -s http://cygwin.mirror.constant.com -l C:/cygwin/var/cache/setup \ + - setup-x86.exe -qnNdO -R C:/cygwin -s http://cygwin.mirror.constant.com -l C:/cygwin/var/cache/setup \ -P autoconf \ -P automake \ -P gcc-core \ From d5add26f1d006f337d460baa28e600c3a4445a33 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Mon, 16 Mar 2015 10:43:21 +0100 Subject: [PATCH 4/9] Download cygwin to the filesystem root --- appveyor.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index e33b3c8..4fa807e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,9 +3,9 @@ version: 0.3.0.{build}-{branch} os: Windows Server 2012 init: - - ps: (New-Object System.Net.WebClient).DownloadFile("https://cygwin.com/setup-x86.exe", "$pwd\setup-x86.exe") + - ps: (New-Object System.Net.WebClient).DownloadFile("https://cygwin.com/setup-x86.exe", "c:\setup-x86.exe") - git config --global core.autocrlf input - - setup-x86.exe -qnNdO -R C:/cygwin -s http://cygwin.mirror.constant.com -l C:/cygwin/var/cache/setup \ + - c:\setup-x86.exe -qnNdO -R C:/cygwin -s http://cygwin.mirror.constant.com -l C:/cygwin/var/cache/setup \ -P autoconf \ -P automake \ -P gcc-core \ From 54426c5590e0efb2d01552845aa37c438964dd81 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Mon, 16 Mar 2015 10:48:17 +0100 Subject: [PATCH 5/9] Fixed ./autogen -> ./autogen.sh --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 4fa807e..15027b4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -40,7 +40,7 @@ platform: configuration: Release install: - - cmd: c:\cygwin\bin\bash -C './autogen && ./configure' + - cmd: c:\cygwin\bin\bash -C './autogen.sh && ./configure' build_script: - cmd: c:\cygwin\bin\bash -C 'make' From 360161977c4ae7d480e847a7210ace19acad5b13 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Mon, 16 Mar 2015 10:55:06 +0100 Subject: [PATCH 6/9] Change work directory before doing anything --- appveyor.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 15027b4..91f3d7a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -40,13 +40,13 @@ platform: configuration: Release install: - - cmd: c:\cygwin\bin\bash -C './autogen.sh && ./configure' + - cmd: c:\cygwin\bin\bash -C 'cd /cygdrive/c/projects/criterion && ./autogen.sh && ./configure' build_script: - - cmd: c:\cygwin\bin\bash -C 'make' + - cmd: c:\cygwin\bin\bash -C 'cd /cygdrive/c/projects/criterion && make' test_script: - - cmd: c:\cygwin\bin\bash -C 'make check' + - cmd: c:\cygwin\bin\bash -C 'cd /cygdrive/c/projects/criterion && make check' notifications: From 7ac470b0da81b97fda42472801348088fb8fde39 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Mon, 16 Mar 2015 11:12:53 +0100 Subject: [PATCH 7/9] Fixed build script options --- appveyor.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 91f3d7a..f6940c6 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -40,13 +40,13 @@ platform: configuration: Release install: - - cmd: c:\cygwin\bin\bash -C 'cd /cygdrive/c/projects/criterion && ./autogen.sh && ./configure' + - cmd: c:\cygwin\bin\bash -c './autogen.sh && ./configure' build_script: - - cmd: c:\cygwin\bin\bash -C 'cd /cygdrive/c/projects/criterion && make' + - cmd: c:\cygwin\bin\bash -c 'make' test_script: - - cmd: c:\cygwin\bin\bash -C 'cd /cygdrive/c/projects/criterion && make check' + - cmd: c:\cygwin\bin\bash -c 'make check' notifications: From 96e6d2e6c95b5e7baec41660532bb87cf5e68259 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Mon, 16 Mar 2015 11:26:03 +0100 Subject: [PATCH 8/9] Fixing autoreconf being not found --- appveyor.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index f6940c6..293a953 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -5,7 +5,7 @@ os: Windows Server 2012 init: - ps: (New-Object System.Net.WebClient).DownloadFile("https://cygwin.com/setup-x86.exe", "c:\setup-x86.exe") - git config --global core.autocrlf input - - c:\setup-x86.exe -qnNdO -R C:/cygwin -s http://cygwin.mirror.constant.com -l C:/cygwin/var/cache/setup \ + - c:\setup-x86.exe -qnNdO -R %CYG_ROOT% -s %CYG_MIRROR% -l %CYG_CACHE% \ -P autoconf \ -P automake \ -P gcc-core \ @@ -27,6 +27,17 @@ init: -P git \ -P wget \ -P curl + - "%CYG_BASH% -lc 'echo $PATH'" + +environment: + global: + CYG_ROOT: C:\cygwin + CYG_MIRROR: http://cygwin.mirror.constant.com + CYG_CACHE: C:\cygwin\var\cache\setup + CYG_BASH: C:\cygwin\bin\bash + +cache: + - '%CYG_CACHE%' clone_depth: 5 @@ -40,13 +51,14 @@ platform: configuration: Release install: - - cmd: c:\cygwin\bin\bash -c './autogen.sh && ./configure' + - "%CYG_BASH% -lc 'cd $APPVEYOR_BUILD_FOLDER; ./autogen.sh'" + - "%CYG_BASH% -lc 'cd $APPVEYOR_BUILD_FOLDER; ./configure'" build_script: - - cmd: c:\cygwin\bin\bash -c 'make' + - "%CYG_BASH% -lc 'cd $APPVEYOR_BUILD_FOLDER; make'" test_script: - - cmd: c:\cygwin\bin\bash -c 'make check' + - "%CYG_BASH% -lc 'cd $APPVEYOR_BUILD_FOLDER; make check'" notifications: From af7e921af2d057f0e27a65673dbdcfcef3c8b9cf Mon Sep 17 00:00:00 2001 From: Snaipe Date: Mon, 16 Mar 2015 14:43:23 +0100 Subject: [PATCH 9/9] Opening stdin from /dev/null --- appveyor.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 293a953..bffb175 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -52,13 +52,13 @@ configuration: Release install: - "%CYG_BASH% -lc 'cd $APPVEYOR_BUILD_FOLDER; ./autogen.sh'" - - "%CYG_BASH% -lc 'cd $APPVEYOR_BUILD_FOLDER; ./configure'" + - '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0