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