blob: 10da235e6ad53b28333046a415a3218f5a5da98c [file] [log] [blame]
inikep03bf5ad2016-05-09 14:04:40 +02001version: 1.0.{build}
inikep5e334be2016-05-18 09:07:28 +02002environment:
3 matrix:
inikep8b452452016-06-01 10:50:17 +02004 - 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"
inikep96abb5a2016-05-19 15:50:58 +020016 - COMPILER: "gcc"
inikepf3302152016-05-18 16:38:36 +020017 MAKE_PARAMS: "test"
18 PLATFORM: "mingw64"
inikep5d589562016-05-25 10:50:28 +020019 - COMPILER: "gcc"
20 MAKE_PARAMS: "test"
21 PLATFORM: "mingw32"
inikep5e334be2016-05-18 09:07:28 +020022
23install:
inikep96abb5a2016-05-19 15:50:58 +020024 - ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION%
25 - if [%COMPILER%]==[gcc] SET PATH_ORIGINAL=%PATH%
26 - if [%COMPILER%]==[gcc] (
inikep5e334be2016-05-18 09:07:28 +020027 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 (
inikep44bb2f62016-05-19 12:16:14 +020032 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;")
inikep5e334be2016-05-18 09:07:28 +020033 )
inikep7c4d0412016-05-16 14:48:04 +020034
inikep03bf5ad2016-05-09 14:04:40 +020035build_script:
inikep96abb5a2016-05-19 15:50:58 +020036 - ECHO Building %COMPILER% %PLATFORM% %CONFIGURATION%
inikepf3302152016-05-18 16:38:36 +020037 - if [%PLATFORM%]==[mingw32] SET PATH=%PATH_MINGW32%;%PATH_ORIGINAL%
38 - if [%PLATFORM%]==[mingw64] SET PATH=%PATH_MINGW64%;%PATH_ORIGINAL%
39 - if [%PLATFORM%]==[mingw64] (
inikep5e334be2016-05-18 09:07:28 +020040 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 )
inikep96abb5a2016-05-19 15:50:58 +020049 - if [%COMPILER%]==[gcc] (
inikepf3302152016-05-18 16:38:36 +020050 ECHO *** &&
51 ECHO *** Building %PLATFORM% &&
52 ECHO *** &&
53 ECHO make %MAKE_PARAMS% &&
54 make %MAKE_PARAMS% &&
inikepf3302152016-05-18 16:38:36 +020055 make clean
56 )
inikep96abb5a2016-05-19 15:50:58 +020057 - if [%COMPILER%]==[visual] (
inikep5e334be2016-05-18 09:07:28 +020058 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 *** &&
inikep96abb5a2016-05-19 15:50:58 +020066 msbuild "projects\VS2010\zstd.sln" %ADDITIONALPARAM% /m /verbosity:minimal /property:PlatformToolset=v100 /t:Clean,Build /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
inikep5e334be2016-05-18 09:07:28 +020067 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 *** &&
inikep96abb5a2016-05-19 15:50:58 +020081 msbuild "projects\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v140 /t:Clean,Build /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
inikep877cc842016-05-18 18:03:02 +020082 COPY projects\VS2010\bin\%PLATFORM%\%CONFIGURATION%\fuzzer.exe projects\fuzzer_VS2015_%PLATFORM%_%CONFIGURATION%.exe &&
inikep1dcb2ff2016-05-30 11:33:52 +020083 COPY projects\VS2010\bin\%PLATFORM%\%CONFIGURATION%\*.exe programs\
inikep5e334be2016-05-18 09:07:28 +020084 )
inikep7c4d0412016-05-16 14:48:04 +020085
inikep03bf5ad2016-05-09 14:04:40 +020086test_script:
inikep96abb5a2016-05-19 15:50:58 +020087 - ECHO Testing %COMPILER% %PLATFORM% %CONFIGURATION%
inikep5e334be2016-05-18 09:07:28 +020088 - SET FUZZERTEST=-T1mn
inikep96abb5a2016-05-19 15:50:58 +020089 - if [%COMPILER%]==[gcc] (
inikepf3302152016-05-18 16:38:36 +020090 if [%PLATFORM%]==[mingw64] projects\fuzzer_clang.exe %FUZZERTEST%
inikep5e334be2016-05-18 09:07:28 +020091 )
inikep96abb5a2016-05-19 15:50:58 +020092 - if [%COMPILER%]==[visual] if [%CONFIGURATION%]==[Release] (
93 CD programs &&
inikep1dcb2ff2016-05-30 11:33:52 +020094 SET ZSTD=./zstd.exe &&
inikep1dcb2ff2016-05-30 11:33:52 +020095 sh -e playTests.sh --test-large-data &&
inikepd57b4182016-05-31 11:46:16 +020096 fullbench.exe -i1 &&
97 fullbench.exe -i1 -P0 &&
inikep96abb5a2016-05-19 15:50:58 +020098 CD .. &&
inikep5e334be2016-05-18 09:07:28 +020099 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% &&
inikep96abb5a2016-05-19 15:50:58 +0200103 projects\fuzzer_VS2015_%PLATFORM%_Release.exe %FUZZERTEST%
inikep5e334be2016-05-18 09:07:28 +0200104 )