inikep | 03bf5ad | 2016-05-09 14:04:40 +0200 | [diff] [blame] | 1 | version: 1.0.{build} |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 2 | environment: |
| 3 | matrix: |
inikep | 8b45245 | 2016-06-01 10:50:17 +0200 | [diff] [blame] | 4 | - COMPILER: "visual" |
| 5 | CONFIGURATION: "Debug" |
| 6 | PLATFORM: "x64" |
| 7 | - COMPILER: "visual" |
| 8 | CONFIGURATION: "Debug" |
| 9 | PLATFORM: "Win32" |
| 10 | - COMPILER: "visual" |
| 11 | CONFIGURATION: "Release" |
| 12 | PLATFORM: "x64" |
| 13 | - COMPILER: "visual" |
| 14 | CONFIGURATION: "Release" |
| 15 | PLATFORM: "Win32" |
inikep | 96abb5a | 2016-05-19 15:50:58 +0200 | [diff] [blame] | 16 | - COMPILER: "gcc" |
inikep | f330215 | 2016-05-18 16:38:36 +0200 | [diff] [blame] | 17 | MAKE_PARAMS: "test" |
| 18 | PLATFORM: "mingw64" |
inikep | 5d58956 | 2016-05-25 10:50:28 +0200 | [diff] [blame] | 19 | - COMPILER: "gcc" |
| 20 | MAKE_PARAMS: "test" |
| 21 | PLATFORM: "mingw32" |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 22 | |
| 23 | install: |
inikep | 96abb5a | 2016-05-19 15:50:58 +0200 | [diff] [blame] | 24 | - ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION% |
| 25 | - if [%COMPILER%]==[gcc] SET PATH_ORIGINAL=%PATH% |
| 26 | - if [%COMPILER%]==[gcc] ( |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 27 | SET "CLANG_PARAMS=-C programs zstd fullbench fuzzer zbufftest paramgrill datagen CC=clang MOREFLAGS="--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion"" && |
| 28 | SET "PATH_MINGW32=c:\MinGW\bin;c:\MinGW\usr\bin" && |
| 29 | SET "PATH_MINGW64=c:\msys64\mingw64\bin;c:\msys64\usr\bin" && |
| 30 | COPY C:\MinGW\bin\mingw32-make.exe C:\MinGW\bin\make.exe |
| 31 | ) else ( |
inikep | 44bb2f6 | 2016-05-19 12:16:14 +0200 | [diff] [blame] | 32 | IF [%PLATFORM%]==[x64] (SET ADDITIONALPARAM=/p:LibraryPath="C:\Program Files\Microsoft SDKs\Windows\v7.1\lib\x64;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\lib\amd64;") |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 33 | ) |
inikep | 7c4d041 | 2016-05-16 14:48:04 +0200 | [diff] [blame] | 34 | |
inikep | 03bf5ad | 2016-05-09 14:04:40 +0200 | [diff] [blame] | 35 | build_script: |
inikep | 96abb5a | 2016-05-19 15:50:58 +0200 | [diff] [blame] | 36 | - ECHO Building %COMPILER% %PLATFORM% %CONFIGURATION% |
inikep | f330215 | 2016-05-18 16:38:36 +0200 | [diff] [blame] | 37 | - if [%PLATFORM%]==[mingw32] SET PATH=%PATH_MINGW32%;%PATH_ORIGINAL% |
| 38 | - if [%PLATFORM%]==[mingw64] SET PATH=%PATH_MINGW64%;%PATH_ORIGINAL% |
| 39 | - if [%PLATFORM%]==[mingw64] ( |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 40 | make clean && |
| 41 | ECHO *** && |
| 42 | ECHO *** Building clang && |
| 43 | ECHO *** && |
| 44 | ECHO make %CLANG_PARAMS% && |
| 45 | make %CLANG_PARAMS% && |
| 46 | COPY programs\fuzzer.exe projects\fuzzer_clang.exe && |
| 47 | make clean |
| 48 | ) |
inikep | 96abb5a | 2016-05-19 15:50:58 +0200 | [diff] [blame] | 49 | - if [%COMPILER%]==[gcc] ( |
inikep | f330215 | 2016-05-18 16:38:36 +0200 | [diff] [blame] | 50 | ECHO *** && |
| 51 | ECHO *** Building %PLATFORM% && |
| 52 | ECHO *** && |
| 53 | ECHO make %MAKE_PARAMS% && |
| 54 | make %MAKE_PARAMS% && |
inikep | f330215 | 2016-05-18 16:38:36 +0200 | [diff] [blame] | 55 | make clean |
| 56 | ) |
inikep | 96abb5a | 2016-05-19 15:50:58 +0200 | [diff] [blame] | 57 | - if [%COMPILER%]==[visual] ( |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 58 | ECHO *** && |
| 59 | ECHO *** Building Visual Studio 2008 %PLATFORM%\%CONFIGURATION% && |
| 60 | ECHO *** && |
| 61 | msbuild "projects\VS2008\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v90 /t:Clean,Build /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" && |
| 62 | COPY projects\VS2008\bin\%PLATFORM%\%CONFIGURATION%\fuzzer.exe projects\fuzzer_VS2008_%PLATFORM%_%CONFIGURATION%.exe && |
| 63 | ECHO *** && |
| 64 | ECHO *** Building Visual Studio 2010 %PLATFORM%\%CONFIGURATION% && |
| 65 | ECHO *** && |
inikep | 96abb5a | 2016-05-19 15:50:58 +0200 | [diff] [blame] | 66 | msbuild "projects\VS2010\zstd.sln" %ADDITIONALPARAM% /m /verbosity:minimal /property:PlatformToolset=v100 /t:Clean,Build /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" && |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 67 | COPY projects\VS2010\bin\%PLATFORM%\%CONFIGURATION%\fuzzer.exe projects\fuzzer_VS2010_%PLATFORM%_%CONFIGURATION%.exe && |
| 68 | ECHO *** && |
| 69 | ECHO *** Building Visual Studio 2012 %PLATFORM%\%CONFIGURATION% && |
| 70 | ECHO *** && |
| 71 | msbuild "projects\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v110 /t:Clean,Build /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" && |
| 72 | COPY projects\VS2010\bin\%PLATFORM%\%CONFIGURATION%\fuzzer.exe projects\fuzzer_VS2012_%PLATFORM%_%CONFIGURATION%.exe && |
| 73 | ECHO *** && |
| 74 | ECHO *** Building Visual Studio 2013 %PLATFORM%\%CONFIGURATION% && |
| 75 | ECHO *** && |
| 76 | msbuild "projects\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v120 /t:Clean,Build /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" && |
| 77 | COPY projects\VS2010\bin\%PLATFORM%\%CONFIGURATION%\fuzzer.exe projects\fuzzer_VS2013_%PLATFORM%_%CONFIGURATION%.exe && |
| 78 | ECHO *** && |
| 79 | ECHO *** Building Visual Studio 2015 %PLATFORM%\%CONFIGURATION% && |
| 80 | ECHO *** && |
inikep | 96abb5a | 2016-05-19 15:50:58 +0200 | [diff] [blame] | 81 | msbuild "projects\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v140 /t:Clean,Build /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" && |
inikep | 877cc84 | 2016-05-18 18:03:02 +0200 | [diff] [blame] | 82 | COPY projects\VS2010\bin\%PLATFORM%\%CONFIGURATION%\fuzzer.exe projects\fuzzer_VS2015_%PLATFORM%_%CONFIGURATION%.exe && |
inikep | 1dcb2ff | 2016-05-30 11:33:52 +0200 | [diff] [blame] | 83 | COPY projects\VS2010\bin\%PLATFORM%\%CONFIGURATION%\*.exe programs\ |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 84 | ) |
inikep | 7c4d041 | 2016-05-16 14:48:04 +0200 | [diff] [blame] | 85 | |
inikep | 03bf5ad | 2016-05-09 14:04:40 +0200 | [diff] [blame] | 86 | test_script: |
inikep | 96abb5a | 2016-05-19 15:50:58 +0200 | [diff] [blame] | 87 | - ECHO Testing %COMPILER% %PLATFORM% %CONFIGURATION% |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 88 | - SET FUZZERTEST=-T1mn |
inikep | 96abb5a | 2016-05-19 15:50:58 +0200 | [diff] [blame] | 89 | - if [%COMPILER%]==[gcc] ( |
inikep | f330215 | 2016-05-18 16:38:36 +0200 | [diff] [blame] | 90 | if [%PLATFORM%]==[mingw64] projects\fuzzer_clang.exe %FUZZERTEST% |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 91 | ) |
inikep | 96abb5a | 2016-05-19 15:50:58 +0200 | [diff] [blame] | 92 | - if [%COMPILER%]==[visual] if [%CONFIGURATION%]==[Release] ( |
| 93 | CD programs && |
inikep | 1dcb2ff | 2016-05-30 11:33:52 +0200 | [diff] [blame] | 94 | SET ZSTD=./zstd.exe && |
inikep | 1dcb2ff | 2016-05-30 11:33:52 +0200 | [diff] [blame] | 95 | sh -e playTests.sh --test-large-data && |
inikep | d57b418 | 2016-05-31 11:46:16 +0200 | [diff] [blame] | 96 | fullbench.exe -i1 && |
| 97 | fullbench.exe -i1 -P0 && |
inikep | 96abb5a | 2016-05-19 15:50:58 +0200 | [diff] [blame] | 98 | CD .. && |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 99 | projects\fuzzer_VS2008_%PLATFORM%_Release.exe %FUZZERTEST% && |
| 100 | projects\fuzzer_VS2010_%PLATFORM%_Release.exe %FUZZERTEST% && |
| 101 | projects\fuzzer_VS2012_%PLATFORM%_Release.exe %FUZZERTEST% && |
| 102 | projects\fuzzer_VS2013_%PLATFORM%_Release.exe %FUZZERTEST% && |
inikep | 96abb5a | 2016-05-19 15:50:58 +0200 | [diff] [blame] | 103 | projects\fuzzer_VS2015_%PLATFORM%_Release.exe %FUZZERTEST% |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 104 | ) |