Yann Collet | 0b39531 | 2020-12-16 23:00:35 -0800 | [diff] [blame] | 1 | # Following tests are run _only_ on `release` branch |
| 2 | # and on selected feature branch named `appveyorTest` or `visual*` |
Yann Collet | 03ef7b7 | 2019-10-18 14:52:16 -0700 | [diff] [blame] | 3 | |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 4 | - |
| 5 | version: 1.0.{build} |
| 6 | branches: |
| 7 | only: |
Yann Collet | 0b39531 | 2020-12-16 23:00:35 -0800 | [diff] [blame] | 8 | - release |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 9 | - master |
Yann Collet | 0b39531 | 2020-12-16 23:00:35 -0800 | [diff] [blame] | 10 | - /appveyor*/ |
Yann Collet | ecd4df4 | 2018-12-25 14:55:45 -0800 | [diff] [blame] | 11 | - /visual*/ |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 12 | environment: |
| 13 | matrix: |
| 14 | - COMPILER: "gcc" |
| 15 | HOST: "mingw" |
| 16 | PLATFORM: "x64" |
Yann Collet | ce34dc3 | 2020-12-16 23:53:13 -0800 | [diff] [blame] | 17 | SCRIPT: "make allzstd MOREFLAGS=-static" |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 18 | ARTIFACT: "true" |
Sean Purcell | 8d2c639 | 2017-03-24 11:45:02 -0700 | [diff] [blame] | 19 | BUILD: "true" |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 20 | - COMPILER: "gcc" |
| 21 | HOST: "mingw" |
| 22 | PLATFORM: "x86" |
Yann Collet | c7818fc | 2017-08-31 17:00:16 -0700 | [diff] [blame] | 23 | SCRIPT: "make allzstd MOREFLAGS=-static" |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 24 | ARTIFACT: "true" |
Sean Purcell | 8d2c639 | 2017-03-24 11:45:02 -0700 | [diff] [blame] | 25 | BUILD: "true" |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 26 | - COMPILER: "clang" |
| 27 | HOST: "mingw" |
| 28 | PLATFORM: "x64" |
Yann Collet | f2ac2b7 | 2020-12-21 15:43:14 -0800 | [diff] [blame] | 29 | SCRIPT: "MOREFLAGS='--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion' make -j allzstd V=1" |
Sean Purcell | 8d2c639 | 2017-03-24 11:45:02 -0700 | [diff] [blame] | 30 | BUILD: "true" |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 31 | |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 32 | - COMPILER: "gcc" |
| 33 | HOST: "mingw" |
| 34 | PLATFORM: "x64" |
| 35 | SCRIPT: "" |
| 36 | TEST: "cmake" |
| 37 | |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 38 | - COMPILER: "visual" |
| 39 | HOST: "visual" |
| 40 | PLATFORM: "x64" |
| 41 | CONFIGURATION: "Debug" |
| 42 | - COMPILER: "visual" |
| 43 | HOST: "visual" |
| 44 | PLATFORM: "Win32" |
| 45 | CONFIGURATION: "Debug" |
| 46 | - COMPILER: "visual" |
| 47 | HOST: "visual" |
| 48 | PLATFORM: "x64" |
| 49 | CONFIGURATION: "Release" |
| 50 | - COMPILER: "visual" |
| 51 | HOST: "visual" |
| 52 | PLATFORM: "Win32" |
| 53 | CONFIGURATION: "Release" |
| 54 | |
| 55 | install: |
inikep | 96abb5a | 2016-05-19 15:50:58 +0200 | [diff] [blame] | 56 | - ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION% |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 57 | - SET PATH_ORIGINAL=%PATH% |
| 58 | - if [%HOST%]==[mingw] ( |
Sean Purcell | fcc55cc | 2017-03-29 13:08:10 -0700 | [diff] [blame] | 59 | SET "PATH_MINGW32=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin" && |
| 60 | SET "PATH_MINGW64=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin" && |
| 61 | COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin\make.exe && |
| 62 | 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] | 63 | ) |
| 64 | - IF [%HOST%]==[visual] IF [%PLATFORM%]==[x64] ( |
| 65 | 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] | 66 | ) |
inikep | 7c4d041 | 2016-05-16 14:48:04 +0200 | [diff] [blame] | 67 | |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 68 | build_script: |
| 69 | - if [%HOST%]==[mingw] ( |
| 70 | ( if [%PLATFORM%]==[x64] ( |
| 71 | SET "PATH=%PATH_MINGW64%;%PATH_ORIGINAL%" |
| 72 | ) else if [%PLATFORM%]==[x86] ( |
| 73 | SET "PATH=%PATH_MINGW32%;%PATH_ORIGINAL%" |
Sean Purcell | 8d2c639 | 2017-03-24 11:45:02 -0700 | [diff] [blame] | 74 | ) ) |
| 75 | ) |
| 76 | - if [%HOST%]==[mingw] if [%BUILD%]==[true] ( |
inikep | 0a0403d | 2016-07-19 12:23:32 +0200 | [diff] [blame] | 77 | make -v && |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 78 | sh -c "%COMPILER% -v" && |
Sean Purcell | 8d2c639 | 2017-03-24 11:45:02 -0700 | [diff] [blame] | 79 | ECHO Building zlib to static link && |
| 80 | SET "CC=%COMPILER%" && |
| 81 | sh -c "cd .. && git clone --depth 1 --branch v1.2.11 https://github.com/madler/zlib" && |
| 82 | sh -c "cd ../zlib && make -f win32/Makefile.gcc libz.a" |
| 83 | ECHO Building zstd && |
| 84 | SET "CPPFLAGS=-I../../zlib" && |
| 85 | SET "LDFLAGS=../../zlib/libz.a" && |
| 86 | sh -c "%SCRIPT%" && |
Sean Purcell | fcc55cc | 2017-03-29 13:08:10 -0700 | [diff] [blame] | 87 | ( if [%COMPILER%]==[gcc] if [%ARTIFACT%]==[true] |
Yann Collet | 9296081 | 2018-03-23 15:00:04 -0700 | [diff] [blame] | 88 | ECHO Creating artifacts && |
Yann Collet | a75104d | 2018-03-23 16:27:28 -0700 | [diff] [blame] | 89 | ECHO %cd% && |
Sean Purcell | fcc55cc | 2017-03-29 13:08:10 -0700 | [diff] [blame] | 90 | lib\dll\example\build_package.bat && |
Sean Purcell | e128ac0 | 2017-04-06 10:15:32 -0700 | [diff] [blame] | 91 | make -C programs DEBUGFLAGS= clean zstd && |
Yann Collet | 36153af | 2017-05-04 17:40:40 -0700 | [diff] [blame] | 92 | 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] | 93 | appveyor PushArtifact zstd-win-binary-%PLATFORM%.zip && |
Yann Collet | 36153af | 2017-05-04 17:40:40 -0700 | [diff] [blame] | 94 | cp zstd.exe ..\bin\zstd.exe && |
Yann Collet | 0b39531 | 2020-12-16 23:00:35 -0800 | [diff] [blame] | 95 | git clone --depth 1 --branch release https://github.com/facebook/zstd && |
Yann Collet | fa294b8 | 2018-03-23 17:20:05 -0700 | [diff] [blame] | 96 | cd zstd && |
Yann Collet | 0b39531 | 2020-12-16 23:00:35 -0800 | [diff] [blame] | 97 | git archive --format=tar release -o zstd-src.tar && |
Yann Collet | fa294b8 | 2018-03-23 17:20:05 -0700 | [diff] [blame] | 98 | ..\zstd -19 zstd-src.tar && |
| 99 | appveyor PushArtifact zstd-src.tar.zst && |
Yann Collet | 4d753b0 | 2018-03-24 09:55:13 -0700 | [diff] [blame] | 100 | certUtil -hashfile zstd-src.tar.zst SHA256 > zstd-src.tar.zst.sha256.sig && |
| 101 | appveyor PushArtifact zstd-src.tar.zst.sha256.sig && |
Yann Collet | fa294b8 | 2018-03-23 17:20:05 -0700 | [diff] [blame] | 102 | cd ..\..\bin\ && |
| 103 | 7z a -tzip -mx9 zstd-win-release-%PLATFORM%.zip * && |
Sean Purcell | fcc55cc | 2017-03-29 13:08:10 -0700 | [diff] [blame] | 104 | appveyor PushArtifact zstd-win-release-%PLATFORM%.zip |
| 105 | ) |
inikep | f330215 | 2016-05-18 16:38:36 +0200 | [diff] [blame] | 106 | ) |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 107 | - if [%HOST%]==[visual] ( |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 108 | ECHO *** && |
inikep | 70ce21f | 2016-08-10 14:17:28 +0200 | [diff] [blame] | 109 | ECHO *** Building Visual Studio 2008 %PLATFORM%\%CONFIGURATION% in %APPVEYOR_BUILD_FOLDER% && |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 110 | ECHO *** && |
Yann Collet | 4c9a4c1 | 2016-09-19 14:58:14 +0200 | [diff] [blame] | 111 | 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" && |
| 112 | DIR build\VS2008\bin\%PLATFORM%\%CONFIGURATION%\*.exe && |
| 113 | MD5sum build/VS2008/bin/%PLATFORM%/%CONFIGURATION%/*.exe && |
| 114 | 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] | 115 | ECHO *** && |
| 116 | ECHO *** Building Visual Studio 2010 %PLATFORM%\%CONFIGURATION% && |
| 117 | ECHO *** && |
Yann Collet | 4c9a4c1 | 2016-09-19 14:58:14 +0200 | [diff] [blame] | 118 | 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] | 119 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 120 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
Yann Collet | 4c9a4c1 | 2016-09-19 14:58:14 +0200 | [diff] [blame] | 121 | 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] | 122 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 123 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
| 124 | 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] | 125 | ECHO *** && |
| 126 | ECHO *** Building Visual Studio 2012 %PLATFORM%\%CONFIGURATION% && |
| 127 | ECHO *** && |
Yann Collet | 4c9a4c1 | 2016-09-19 14:58:14 +0200 | [diff] [blame] | 128 | 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] | 129 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 130 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
Yann Collet | 4c9a4c1 | 2016-09-19 14:58:14 +0200 | [diff] [blame] | 131 | 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] | 132 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 133 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
| 134 | 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] | 135 | ECHO *** && |
| 136 | ECHO *** Building Visual Studio 2013 %PLATFORM%\%CONFIGURATION% && |
| 137 | ECHO *** && |
Yann Collet | 4c9a4c1 | 2016-09-19 14:58:14 +0200 | [diff] [blame] | 138 | 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] | 139 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 140 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
Yann Collet | 4c9a4c1 | 2016-09-19 14:58:14 +0200 | [diff] [blame] | 141 | 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] | 142 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 143 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
| 144 | 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] | 145 | ECHO *** && |
| 146 | ECHO *** Building Visual Studio 2015 %PLATFORM%\%CONFIGURATION% && |
| 147 | ECHO *** && |
Yann Collet | 4c9a4c1 | 2016-09-19 14:58:14 +0200 | [diff] [blame] | 148 | 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] | 149 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 150 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
Yann Collet | 4c9a4c1 | 2016-09-19 14:58:14 +0200 | [diff] [blame] | 151 | 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] | 152 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 153 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
| 154 | COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2015_%PLATFORM%_%CONFIGURATION%.exe && |
| 155 | COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe tests\ |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 156 | ) |
inikep | 7c4d041 | 2016-05-16 14:48:04 +0200 | [diff] [blame] | 157 | |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 158 | test_script: |
inikep | 96abb5a | 2016-05-19 15:50:58 +0200 | [diff] [blame] | 159 | - ECHO Testing %COMPILER% %PLATFORM% %CONFIGURATION% |
Sean Purcell | dd79c5c | 2017-03-29 14:40:11 -0700 | [diff] [blame] | 160 | - SET "CC=gcc" |
| 161 | - SET "CXX=g++" |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 162 | - if [%TEST%]==[cmake] ( |
Przemyslaw Skibinski | cb8d2d9 | 2017-02-10 12:01:14 +0100 | [diff] [blame] | 163 | mkdir build\cmake\build && |
| 164 | cd build\cmake\build && |
Nick Terrell | bc3cda9 | 2020-12-10 13:33:34 -0800 | [diff] [blame] | 165 | SET FUZZERTEST=-T2mn && |
| 166 | SET ZSTREAM_TESTTIME=-T2mn && |
Przemyslaw Skibinski | cb8d2d9 | 2017-02-10 12:01:14 +0100 | [diff] [blame] | 167 | cmake -G "Visual Studio 14 2015 Win64" .. && |
| 168 | cd ..\..\.. && |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 169 | make clean |
| 170 | ) |
Yann Collet | c691542 | 2017-04-27 16:24:53 -0700 | [diff] [blame] | 171 | - SET "FUZZERTEST=-T30s" |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 172 | - if [%HOST%]==[visual] if [%CONFIGURATION%]==[Release] ( |
inikep | 7feafdd | 2016-08-18 15:17:18 +0200 | [diff] [blame] | 173 | CD tests && |
Yann Collet | 306e922 | 2020-05-21 18:06:43 -0700 | [diff] [blame] | 174 | SET ZSTD_BIN=./zstd.exe&& |
| 175 | SET DATAGEN_BIN=./datagen.exe&& |
inikep | 1dcb2ff | 2016-05-30 11:33:52 +0200 | [diff] [blame] | 176 | sh -e playTests.sh --test-large-data && |
inikep | d57b418 | 2016-05-31 11:46:16 +0200 | [diff] [blame] | 177 | fullbench.exe -i1 && |
| 178 | fullbench.exe -i1 -P0 && |
inikep | 7feafdd | 2016-08-18 15:17:18 +0200 | [diff] [blame] | 179 | fuzzer_VS2012_%PLATFORM%_Release.exe %FUZZERTEST% && |
| 180 | fuzzer_VS2013_%PLATFORM%_Release.exe %FUZZERTEST% && |
| 181 | fuzzer_VS2015_%PLATFORM%_Release.exe %FUZZERTEST% |
inikep | 5e334be | 2016-05-18 09:07:28 +0200 | [diff] [blame] | 182 | ) |
inikep | e9ae30a | 2016-09-12 14:17:26 +0200 | [diff] [blame] | 183 | |
Yann Collet | 03ef7b7 | 2019-10-18 14:52:16 -0700 | [diff] [blame] | 184 | |
| 185 | # The following tests are for regular pushes |
| 186 | # into `dev` or some feature branch |
| 187 | # There run less tests, for shorter feedback loop |
| 188 | |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 189 | - |
| 190 | version: 1.0.{build} |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 191 | environment: |
| 192 | matrix: |
| 193 | - COMPILER: "gcc" |
Christoph Reiter | 9a5d8a6 | 2020-01-11 10:41:56 +0100 | [diff] [blame] | 194 | HOST: "cygwin" |
| 195 | PLATFORM: "x64" |
| 196 | - COMPILER: "gcc" |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 197 | HOST: "mingw" |
| 198 | PLATFORM: "x64" |
Yann Collet | 01ecad2 | 2020-10-21 23:13:46 -0700 | [diff] [blame] | 199 | SCRIPT: "CFLAGS=-Werror make -j allzstd DEBUGLEVEL=2" |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 200 | - COMPILER: "gcc" |
| 201 | HOST: "mingw" |
| 202 | PLATFORM: "x86" |
cyan4973 | e85b4c5 | 2018-07-30 17:08:40 +0200 | [diff] [blame] | 203 | SCRIPT: "CFLAGS=-Werror make -j allzstd" |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 204 | - COMPILER: "clang" |
| 205 | HOST: "mingw" |
| 206 | PLATFORM: "x64" |
Yann Collet | f2ac2b7 | 2020-12-21 15:43:14 -0800 | [diff] [blame] | 207 | SCRIPT: "CFLAGS='--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion' make -j allzstd V=1" |
Sean Purcell | daec40d | 2017-03-07 12:08:15 -0800 | [diff] [blame] | 208 | |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 209 | - COMPILER: "visual" |
| 210 | HOST: "visual" |
| 211 | PLATFORM: "x64" |
| 212 | CONFIGURATION: "Debug" |
| 213 | - COMPILER: "visual" |
| 214 | HOST: "visual" |
| 215 | PLATFORM: "Win32" |
| 216 | CONFIGURATION: "Debug" |
| 217 | - COMPILER: "visual" |
| 218 | HOST: "visual" |
| 219 | PLATFORM: "x64" |
| 220 | CONFIGURATION: "Release" |
| 221 | - COMPILER: "visual" |
| 222 | HOST: "visual" |
| 223 | PLATFORM: "Win32" |
| 224 | CONFIGURATION: "Release" |
inikep | e9ae30a | 2016-09-12 14:17:26 +0200 | [diff] [blame] | 225 | |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 226 | install: |
| 227 | - ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION% |
| 228 | - SET PATH_ORIGINAL=%PATH% |
Christoph Reiter | 9a5d8a6 | 2020-01-11 10:41:56 +0100 | [diff] [blame] | 229 | - if [%HOST%]==[cygwin] ( |
| 230 | ECHO Installing Cygwin Packages && |
| 231 | C:\cygwin64\setup-x86_64.exe -qnNdO -R "C:\cygwin64" -g -P ^ |
| 232 | gcc-g++,^ |
| 233 | gcc,^ |
| 234 | cmake,^ |
| 235 | make |
| 236 | ) |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 237 | - if [%HOST%]==[mingw] ( |
Sean Purcell | ad8da88 | 2017-04-13 14:40:06 -0700 | [diff] [blame] | 238 | SET "PATH_MINGW32=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin" && |
| 239 | SET "PATH_MINGW64=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin" && |
| 240 | COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin\make.exe && |
| 241 | 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] | 242 | ) |
| 243 | - IF [%HOST%]==[visual] IF [%PLATFORM%]==[x64] ( |
| 244 | 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;" |
| 245 | ) |
| 246 | |
| 247 | build_script: |
| 248 | - ECHO Building %COMPILER% %PLATFORM% %CONFIGURATION% |
Christoph Reiter | 9a5d8a6 | 2020-01-11 10:41:56 +0100 | [diff] [blame] | 249 | - if [%HOST%]==[cygwin] ( |
| 250 | set CHERE_INVOKING=yes && |
| 251 | set CC=%COMPILER% && |
| 252 | C:\cygwin64\bin\bash --login -c " |
| 253 | set -e; |
| 254 | cd build/cmake; |
Yann Collet | 4f755bd | 2020-05-05 14:08:35 -0700 | [diff] [blame] | 255 | CFLAGS='-Werror' cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Debug -DZSTD_BUILD_TESTS:BOOL=ON -DZSTD_FUZZER_FLAGS=-T30s -DZSTD_ZSTREAM_FLAGS=-T30s .; |
Christoph Reiter | 9a5d8a6 | 2020-01-11 10:41:56 +0100 | [diff] [blame] | 256 | make -j4; |
Taylor Braun-Jones | 5b054d9 | 2020-03-23 16:08:52 -0400 | [diff] [blame] | 257 | ctest -V -L Medium; |
Christoph Reiter | 9a5d8a6 | 2020-01-11 10:41:56 +0100 | [diff] [blame] | 258 | " |
| 259 | ) |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 260 | - if [%HOST%]==[mingw] ( |
| 261 | ( if [%PLATFORM%]==[x64] ( |
| 262 | SET "PATH=%PATH_MINGW64%;%PATH_ORIGINAL%" |
| 263 | ) else if [%PLATFORM%]==[x86] ( |
| 264 | SET "PATH=%PATH_MINGW32%;%PATH_ORIGINAL%" |
| 265 | ) ) && |
| 266 | make -v && |
| 267 | sh -c "%COMPILER% -v" && |
Sean Purcell | 5a61f36 | 2017-04-14 11:33:04 -0700 | [diff] [blame] | 268 | set "CC=%COMPILER%" && |
| 269 | sh -c "%SCRIPT%" |
Sean Purcell | 5a2b857 | 2017-03-14 15:59:57 -0700 | [diff] [blame] | 270 | ) |
| 271 | - if [%HOST%]==[visual] ( |
| 272 | ECHO *** && |
| 273 | ECHO *** Building Visual Studio 2015 %PLATFORM%\%CONFIGURATION% && |
| 274 | ECHO *** && |
| 275 | 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" && |
| 276 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 277 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
| 278 | 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" && |
| 279 | DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe && |
| 280 | MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe && |
| 281 | COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2015_%PLATFORM%_%CONFIGURATION%.exe && |
| 282 | COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe tests\ |
| 283 | ) |
Yann Collet | 03ef7b7 | 2019-10-18 14:52:16 -0700 | [diff] [blame] | 284 | |
| 285 | |
| 286 | test_script: |
| 287 | - ECHO Testing %COMPILER% %PLATFORM% %CONFIGURATION% |
| 288 | - if [%HOST%]==[mingw] ( |
Yann Collet | 0e154fc | 2019-10-18 15:02:30 -0700 | [diff] [blame] | 289 | set "CC=%COMPILER%" && |
Yann Collet | de985b1 | 2020-10-16 14:31:40 -0700 | [diff] [blame] | 290 | make clean && |
Bimba Shrestha | 4a9eca4 | 2019-10-29 09:45:28 -0700 | [diff] [blame] | 291 | make check |
Yann Collet | 03ef7b7 | 2019-10-18 14:52:16 -0700 | [diff] [blame] | 292 | ) |