Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 1 | - |
| 2 | version: 1.0.{build} |
| 3 | branches: |
| 4 | only: |
| 5 | - dev |
| 6 | - master |
Yann Collet | b1f898e | 2018-03-23 16:15:56 -0700 | [diff] [blame] | 7 | - srcPackage |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 8 | environment: |
| 9 | matrix: |
| 10 | - COMPILER: "gcc" |
| 11 | HOST: "mingw" |
| 12 | PLATFORM: "x64" |
Yann Collet | 63aebdf | 2017-12-27 19:27:54 +0100 | [diff] [blame] | 13 | SCRIPT: "make allzstd MOREFLAGS=-static && make -C tests test-symbols fullbench-lib" |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 14 | ARTIFACT: "true" |
Sean Purcell | 8d2c639 | 2017-03-24 11:45:02 -0700 | [diff] [blame] | 15 | BUILD: "true" |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 16 | - COMPILER: "gcc" |
| 17 | HOST: "mingw" |
| 18 | PLATFORM: "x86" |
Yann Collet | c7818fc | 2017-08-31 17:00:16 -0700 | [diff] [blame] | 19 | SCRIPT: "make allzstd MOREFLAGS=-static" |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 20 | ARTIFACT: "true" |
Sean Purcell | 8d2c639 | 2017-03-24 11:45:02 -0700 | [diff] [blame] | 21 | BUILD: "true" |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 22 | - COMPILER: "clang" |
| 23 | HOST: "mingw" |
| 24 | PLATFORM: "x64" |
Yann Collet | 8e29838 | 2017-08-31 14:30:52 -0700 | [diff] [blame] | 25 | SCRIPT: "MOREFLAGS='--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion' make allzstd" |
Sean Purcell | 8d2c639 | 2017-03-24 11:45:02 -0700 | [diff] [blame] | 26 | BUILD: "true" |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 27 | |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 28 | - COMPILER: "gcc" |
| 29 | HOST: "mingw" |
| 30 | PLATFORM: "x64" |
| 31 | SCRIPT: "" |
| 32 | TEST: "cmake" |
| 33 | |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 34 | - COMPILER: "visual" |
| 35 | HOST: "visual" |
| 36 | PLATFORM: "x64" |
| 37 | CONFIGURATION: "Debug" |
| 38 | - COMPILER: "visual" |
| 39 | HOST: "visual" |
| 40 | PLATFORM: "Win32" |
| 41 | CONFIGURATION: "Debug" |
| 42 | - COMPILER: "visual" |
| 43 | HOST: "visual" |
| 44 | PLATFORM: "x64" |
| 45 | CONFIGURATION: "Release" |
| 46 | - COMPILER: "visual" |
| 47 | HOST: "visual" |
| 48 | PLATFORM: "Win32" |
| 49 | CONFIGURATION: "Release" |
| 50 | |
| 51 | install: |
inikep | 96abb5a | 2016-05-19 15:50:58 +0200 | [diff] [blame] | 52 | - ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION% |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 53 | - SET PATH_ORIGINAL=%PATH% |
| 54 | - if [%HOST%]==[mingw] ( |
Sean Purcell | fcc55cc | 2017-03-29 13:08:10 -0700 | [diff] [blame] | 55 | SET "PATH_MINGW32=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin" && |
| 56 | SET "PATH_MINGW64=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin" && |
| 57 | COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin\make.exe && |
| 58 | COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin\make.exe |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 59 | ) |
| 60 | - IF [%HOST%]==[visual] IF [%PLATFORM%]==[x64] ( |
| 61 | 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] | 62 | ) |
inikep | 7c4d041 | 2016-05-16 14:48:04 +0200 | [diff] [blame] | 63 | |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 64 | build_script: |
| 65 | - if [%HOST%]==[mingw] ( |
| 66 | ( if [%PLATFORM%]==[x64] ( |
| 67 | SET "PATH=%PATH_MINGW64%;%PATH_ORIGINAL%" |
| 68 | ) else if [%PLATFORM%]==[x86] ( |
| 69 | SET "PATH=%PATH_MINGW32%;%PATH_ORIGINAL%" |
Sean Purcell | 8d2c639 | 2017-03-24 11:45:02 -0700 | [diff] [blame] | 70 | ) ) |
| 71 | ) |
| 72 | - if [%HOST%]==[mingw] if [%BUILD%]==[true] ( |
inikep | 0a0403d | 2016-07-19 12:23:32 +0200 | [diff] [blame] | 73 | make -v && |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 74 | sh -c "%COMPILER% -v" && |
Sean Purcell | 8d2c639 | 2017-03-24 11:45:02 -0700 | [diff] [blame] | 75 | ECHO Building zlib to static link && |
| 76 | SET "CC=%COMPILER%" && |
| 77 | sh -c "cd .. && git clone --depth 1 --branch v1.2.11 https://github.com/madler/zlib" && |
| 78 | sh -c "cd ../zlib && make -f win32/Makefile.gcc libz.a" |
| 79 | ECHO Building zstd && |
| 80 | SET "CPPFLAGS=-I../../zlib" && |
| 81 | SET "LDFLAGS=../../zlib/libz.a" && |
| 82 | sh -c "%SCRIPT%" && |
Sean Purcell | fcc55cc | 2017-03-29 13:08:10 -0700 | [diff] [blame] | 83 | ( if [%COMPILER%]==[gcc] if [%ARTIFACT%]==[true] |
Yann Collet | 9296081 | 2018-03-23 15:00:04 -0700 | [diff] [blame] | 84 | ECHO Creating artifacts && |
Yann Collet | a75104d | 2018-03-23 16:27:28 -0700 | [diff] [blame] | 85 | ECHO %cd% && |
Sean Purcell | fcc55cc | 2017-03-29 13:08:10 -0700 | [diff] [blame] | 86 | lib\dll\example\build_package.bat && |
Yann Collet | 9296081 | 2018-03-23 15:00:04 -0700 | [diff] [blame] | 87 | cd programs\ && make DEBUGFLAGS= clean zstd && |
| 88 | 7z a -tzip -mx9 zstd-win-binary-%PLATFORM%.zip zstd.exe && |
Yann Collet | 9203dab | 2017-05-04 17:30:37 -0700 | [diff] [blame] | 89 | appveyor PushArtifact zstd-win-binary-%PLATFORM%.zip && |
Yann Collet | 36153af | 2017-05-04 17:40:40 -0700 | [diff] [blame] | 90 | cp zstd.exe ..\bin\zstd.exe && |
Yann Collet | fa294b8 | 2018-03-23 17:20:05 -0700 | [diff] [blame^] | 91 | git clone --depth 1 --branch master https://github.com/facebook/zstd && |
| 92 | cd zstd && |
| 93 | git archive --format=tar master -o zstd-src.tar && |
| 94 | ..\zstd -19 zstd-src.tar && |
| 95 | appveyor PushArtifact zstd-src.tar.zst && |
| 96 | cd ..\..\bin\ && |
| 97 | 7z a -tzip -mx9 zstd-win-release-%PLATFORM%.zip * && |
Sean Purcell | fcc55cc | 2017-03-29 13:08:10 -0700 | [diff] [blame] | 98 | appveyor PushArtifact zstd-win-release-%PLATFORM%.zip |
| 99 | ) |
inikep | f330215 | 2016-05-18 16:38:36 +0200 | [diff] [blame] | 100 | ) |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 101 | - if [%HOST%]==[visual] ( |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 102 | ECHO *** && |
inikep | 70ce21f | 2016-08-10 14:17:28 +0200 | [diff] [blame] | 103 | ECHO *** Building Visual Studio 2008 %PLATFORM%\%CONFIGURATION% in %APPVEYOR_BUILD_FOLDER% && |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 104 | ECHO *** && |
Yann Collet | 4c9a4c1 | 2016-09-19 14:58:14 +0200 | [diff] [blame] | 105 | msbuild "build\VS2008\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v90 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" && |
| 106 | DIR build\VS2008\bin\%PLATFORM%\%CONFIGURATION%\*.exe && |
| 107 | MD5sum build/VS2008/bin/%PLATFORM%/%CONFIGURATION%/*.exe && |
| 108 | COPY build\VS2008\bin\%PLATFORM%\%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2008_%PLATFORM%_%CONFIGURATION%.exe && |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 109 | ECHO *** && |
| 110 | ECHO *** Building Visual Studio 2010 %PLATFORM%\%CONFIGURATION% && |
| 111 | ECHO *** && |
Yann Collet | 4c9a4c1 | 2016-09-19 14:58:14 +0200 | [diff] [blame] | 112 | msbuild "build\VS2010\zstd.sln" %ADDITIONALPARAM% /m /verbosity:minimal /property:PlatformToolset=v100 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" && |
Przemyslaw Skibinski | cba727c | 2016-11-14 15:59:57 +0100 | [diff] [blame] | 113 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 114 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
Yann Collet | 4c9a4c1 | 2016-09-19 14:58:14 +0200 | [diff] [blame] | 115 | msbuild "build\VS2010\zstd.sln" %ADDITIONALPARAM% /m /verbosity:minimal /property:PlatformToolset=v100 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" && |
Przemyslaw Skibinski | cba727c | 2016-11-14 15:59:57 +0100 | [diff] [blame] | 116 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 117 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
| 118 | COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2010_%PLATFORM%_%CONFIGURATION%.exe && |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 119 | ECHO *** && |
| 120 | ECHO *** Building Visual Studio 2012 %PLATFORM%\%CONFIGURATION% && |
| 121 | ECHO *** && |
Yann Collet | 4c9a4c1 | 2016-09-19 14:58:14 +0200 | [diff] [blame] | 122 | msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v110 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" && |
Przemyslaw Skibinski | cba727c | 2016-11-14 15:59:57 +0100 | [diff] [blame] | 123 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 124 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
Yann Collet | 4c9a4c1 | 2016-09-19 14:58:14 +0200 | [diff] [blame] | 125 | msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v110 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" && |
Przemyslaw Skibinski | cba727c | 2016-11-14 15:59:57 +0100 | [diff] [blame] | 126 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 127 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
| 128 | COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2012_%PLATFORM%_%CONFIGURATION%.exe && |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 129 | ECHO *** && |
| 130 | ECHO *** Building Visual Studio 2013 %PLATFORM%\%CONFIGURATION% && |
| 131 | ECHO *** && |
Yann Collet | 4c9a4c1 | 2016-09-19 14:58:14 +0200 | [diff] [blame] | 132 | msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v120 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" && |
Przemyslaw Skibinski | cba727c | 2016-11-14 15:59:57 +0100 | [diff] [blame] | 133 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 134 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
Yann Collet | 4c9a4c1 | 2016-09-19 14:58:14 +0200 | [diff] [blame] | 135 | msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v120 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" && |
Przemyslaw Skibinski | cba727c | 2016-11-14 15:59:57 +0100 | [diff] [blame] | 136 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 137 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
| 138 | COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2013_%PLATFORM%_%CONFIGURATION%.exe && |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 139 | ECHO *** && |
| 140 | ECHO *** Building Visual Studio 2015 %PLATFORM%\%CONFIGURATION% && |
| 141 | ECHO *** && |
Yann Collet | 4c9a4c1 | 2016-09-19 14:58:14 +0200 | [diff] [blame] | 142 | msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v140 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" && |
Przemyslaw Skibinski | cba727c | 2016-11-14 15:59:57 +0100 | [diff] [blame] | 143 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 144 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
Yann Collet | 4c9a4c1 | 2016-09-19 14:58:14 +0200 | [diff] [blame] | 145 | msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v140 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" && |
Przemyslaw Skibinski | cba727c | 2016-11-14 15:59:57 +0100 | [diff] [blame] | 146 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 147 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
| 148 | COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2015_%PLATFORM%_%CONFIGURATION%.exe && |
| 149 | COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe tests\ |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 150 | ) |
inikep | 7c4d041 | 2016-05-16 14:48:04 +0200 | [diff] [blame] | 151 | |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 152 | test_script: |
inikep | 96abb5a | 2016-05-19 15:50:58 +0200 | [diff] [blame] | 153 | - ECHO Testing %COMPILER% %PLATFORM% %CONFIGURATION% |
Sean Purcell | dd79c5c | 2017-03-29 14:40:11 -0700 | [diff] [blame] | 154 | - SET "CC=gcc" |
| 155 | - SET "CXX=g++" |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 156 | - if [%TEST%]==[cmake] ( |
Przemyslaw Skibinski | cb8d2d9 | 2017-02-10 12:01:14 +0100 | [diff] [blame] | 157 | mkdir build\cmake\build && |
| 158 | cd build\cmake\build && |
| 159 | cmake -G "Visual Studio 14 2015 Win64" .. && |
| 160 | cd ..\..\.. && |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 161 | make clean |
| 162 | ) |
Yann Collet | c691542 | 2017-04-27 16:24:53 -0700 | [diff] [blame] | 163 | - SET "FUZZERTEST=-T30s" |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 164 | - if [%HOST%]==[visual] if [%CONFIGURATION%]==[Release] ( |
inikep | 7feafdd | 2016-08-18 15:17:18 +0200 | [diff] [blame] | 165 | CD tests && |
inikep | 1dcb2ff | 2016-05-30 11:33:52 +0200 | [diff] [blame] | 166 | SET ZSTD=./zstd.exe && |
inikep | 1dcb2ff | 2016-05-30 11:33:52 +0200 | [diff] [blame] | 167 | sh -e playTests.sh --test-large-data && |
inikep | d57b418 | 2016-05-31 11:46:16 +0200 | [diff] [blame] | 168 | fullbench.exe -i1 && |
| 169 | fullbench.exe -i1 -P0 && |
inikep | 7feafdd | 2016-08-18 15:17:18 +0200 | [diff] [blame] | 170 | fuzzer_VS2008_%PLATFORM%_Release.exe %FUZZERTEST% && |
| 171 | fuzzer_VS2010_%PLATFORM%_Release.exe %FUZZERTEST% && |
| 172 | fuzzer_VS2012_%PLATFORM%_Release.exe %FUZZERTEST% && |
| 173 | fuzzer_VS2013_%PLATFORM%_Release.exe %FUZZERTEST% && |
| 174 | fuzzer_VS2015_%PLATFORM%_Release.exe %FUZZERTEST% |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 175 | ) |
inikep | e9ae30a | 2016-09-12 14:17:26 +0200 | [diff] [blame] | 176 | |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 177 | - |
| 178 | version: 1.0.{build} |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 179 | environment: |
| 180 | matrix: |
| 181 | - COMPILER: "gcc" |
| 182 | HOST: "mingw" |
| 183 | PLATFORM: "x64" |
Yann Collet | 8e29838 | 2017-08-31 14:30:52 -0700 | [diff] [blame] | 184 | SCRIPT: "make allzstd" |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 185 | - COMPILER: "gcc" |
| 186 | HOST: "mingw" |
| 187 | PLATFORM: "x86" |
Yann Collet | 8e29838 | 2017-08-31 14:30:52 -0700 | [diff] [blame] | 188 | SCRIPT: "make allzstd" |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 189 | - COMPILER: "clang" |
| 190 | HOST: "mingw" |
| 191 | PLATFORM: "x64" |
Yann Collet | 8e29838 | 2017-08-31 14:30:52 -0700 | [diff] [blame] | 192 | SCRIPT: "MOREFLAGS='--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion' make allzstd" |
Sean Purcell | daec40d | 2017-03-07 12:08:15 -0800 | [diff] [blame] | 193 | |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 194 | - COMPILER: "visual" |
| 195 | HOST: "visual" |
| 196 | PLATFORM: "x64" |
| 197 | CONFIGURATION: "Debug" |
| 198 | - COMPILER: "visual" |
| 199 | HOST: "visual" |
| 200 | PLATFORM: "Win32" |
| 201 | CONFIGURATION: "Debug" |
| 202 | - COMPILER: "visual" |
| 203 | HOST: "visual" |
| 204 | PLATFORM: "x64" |
| 205 | CONFIGURATION: "Release" |
| 206 | - COMPILER: "visual" |
| 207 | HOST: "visual" |
| 208 | PLATFORM: "Win32" |
| 209 | CONFIGURATION: "Release" |
inikep | e9ae30a | 2016-09-12 14:17:26 +0200 | [diff] [blame] | 210 | |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 211 | install: |
| 212 | - ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION% |
| 213 | - SET PATH_ORIGINAL=%PATH% |
| 214 | - if [%HOST%]==[mingw] ( |
Sean Purcell | ad8da88 | 2017-04-13 14:40:06 -0700 | [diff] [blame] | 215 | SET "PATH_MINGW32=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin" && |
| 216 | SET "PATH_MINGW64=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin" && |
| 217 | COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin\make.exe && |
| 218 | COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin\make.exe |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 219 | ) |
| 220 | - IF [%HOST%]==[visual] IF [%PLATFORM%]==[x64] ( |
| 221 | 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;" |
| 222 | ) |
| 223 | |
| 224 | build_script: |
| 225 | - ECHO Building %COMPILER% %PLATFORM% %CONFIGURATION% |
| 226 | - if [%HOST%]==[mingw] ( |
| 227 | ( if [%PLATFORM%]==[x64] ( |
| 228 | SET "PATH=%PATH_MINGW64%;%PATH_ORIGINAL%" |
| 229 | ) else if [%PLATFORM%]==[x86] ( |
| 230 | SET "PATH=%PATH_MINGW32%;%PATH_ORIGINAL%" |
| 231 | ) ) && |
| 232 | make -v && |
| 233 | sh -c "%COMPILER% -v" && |
Sean Purcell | 5a61f36 | 2017-04-14 11:33:04 -0700 | [diff] [blame] | 234 | set "CC=%COMPILER%" && |
| 235 | sh -c "%SCRIPT%" |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 236 | ) |
| 237 | - if [%HOST%]==[visual] ( |
| 238 | ECHO *** && |
| 239 | ECHO *** Building Visual Studio 2015 %PLATFORM%\%CONFIGURATION% && |
| 240 | ECHO *** && |
| 241 | msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v140 /p:ForceImportBeforeCppTargets=%APPVEYOR_BUILD_FOLDER%\build\VS2010\CompileAsCpp.props /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" && |
| 242 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 243 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
| 244 | msbuild "build\VS2010\zstd.sln" /m /verbosity:minimal /property:PlatformToolset=v140 /t:Clean,Build /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" && |
| 245 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 246 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
| 247 | COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2015_%PLATFORM%_%CONFIGURATION%.exe && |
| 248 | COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe tests\ |
| 249 | ) |