2017-03-14 15:59:57 -07:00
-
version : 1.0 .{build}
branches :
only :
- master
2018-12-25 14:20:33 -08:00
- appveyorTest
2018-12-25 14:55:45 -08:00
- /visual*/
2017-03-14 15:59:57 -07:00
environment :
matrix :
- COMPILER : "gcc"
HOST : "mingw"
PLATFORM : "x64"
2017-12-27 10:27:54 -08:00
SCRIPT : "make allzstd MOREFLAGS=-static && make -C tests test-symbols fullbench-lib"
2017-03-14 15:59:57 -07:00
ARTIFACT : "true"
2017-03-24 11:45:02 -07:00
BUILD : "true"
2017-03-14 15:59:57 -07:00
- COMPILER : "gcc"
HOST : "mingw"
PLATFORM : "x86"
2017-08-31 17:00:16 -07:00
SCRIPT : "make allzstd MOREFLAGS=-static"
2017-03-14 15:59:57 -07:00
ARTIFACT : "true"
2017-03-24 11:45:02 -07:00
BUILD : "true"
2017-03-14 15:59:57 -07:00
- COMPILER : "clang"
HOST : "mingw"
PLATFORM : "x64"
2017-08-31 14:30:52 -07:00
SCRIPT : "MOREFLAGS='--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion' make allzstd"
2017-03-24 11:45:02 -07:00
BUILD : "true"
2016-05-16 05:48:04 -07:00
2017-03-14 15:59:57 -07:00
- COMPILER : "gcc"
HOST : "mingw"
PLATFORM : "x64"
SCRIPT : ""
TEST : "cmake"
- COMPILER : "visual"
HOST : "visual"
PLATFORM : "x64"
CONFIGURATION : "Debug"
- COMPILER : "visual"
HOST : "visual"
PLATFORM : "Win32"
CONFIGURATION : "Debug"
- COMPILER : "visual"
HOST : "visual"
PLATFORM : "x64"
CONFIGURATION : "Release"
- COMPILER : "visual"
HOST : "visual"
PLATFORM : "Win32"
CONFIGURATION : "Release"
install :
2016-05-19 06:50:58 -07:00
- ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION%
2017-03-14 15:59:57 -07:00
- SET PATH_ORIGINAL=%PATH%
- if [%HOST%]==[mingw] (
2017-03-29 13:08:10 -07:00
SET "PATH_MINGW32=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin" &&
SET "PATH_MINGW64=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin" &&
COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin\make.exe &&
COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin\make.exe
2017-03-14 15:59:57 -07:00
)
- IF [%HOST%]==[visual] 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;"
2016-05-18 00:07:28 -07:00
)
2016-05-09 05:04:40 -07:00
2017-03-14 15:59:57 -07:00
build_script :
- if [%HOST%]==[mingw] (
( if [%PLATFORM%]==[x64] (
SET "PATH=%PATH_MINGW64%;%PATH_ORIGINAL%"
) else if [%PLATFORM%]==[x86] (
SET "PATH=%PATH_MINGW32%;%PATH_ORIGINAL%"
2017-03-24 11:45:02 -07:00
) )
)
- if [%HOST%]==[mingw] if [%BUILD%]==[true] (
2016-07-19 03:23:32 -07:00
make -v &&
2017-03-14 15:59:57 -07:00
sh -c "%COMPILER% -v" &&
2017-03-24 11:45:02 -07:00
ECHO Building zlib to static link &&
SET "CC=%COMPILER%" &&
sh -c "cd .. && git clone --depth 1 --branch v1.2.11 https://github.com/madler/zlib" &&
sh -c "cd ../zlib && make -f win32/Makefile.gcc libz.a"
ECHO Building zstd &&
SET "CPPFLAGS=-I../../zlib" &&
SET "LDFLAGS=../../zlib/libz.a" &&
sh -c "%SCRIPT%" &&
2017-03-29 13:08:10 -07:00
( if [%COMPILER%]==[gcc] if [%ARTIFACT%]==[true]
2018-03-23 15:00:04 -07:00
ECHO Creating artifacts &&
2018-03-23 16:27:28 -07:00
ECHO %cd% &&
2017-03-29 13:08:10 -07:00
lib\dll\example\build_package.bat &&
2017-04-06 10:15:32 -07:00
make -C programs DEBUGFLAGS= clean zstd &&
2017-05-04 17:40:40 -07:00
cd programs\ && 7z a -tzip -mx9 zstd-win-binary-%PLATFORM%.zip zstd.exe &&
2017-05-04 17:30:37 -07:00
appveyor PushArtifact zstd-win-binary-%PLATFORM%.zip &&
2017-05-04 17:40:40 -07:00
cp zstd.exe ..\bin\zstd.exe &&
2018-03-23 17:20:05 -07:00
git clone --depth 1 --branch master https://github.com/facebook/zstd &&
cd zstd &&
git archive --format=tar master -o zstd-src.tar &&
..\zstd -19 zstd-src.tar &&
appveyor PushArtifact zstd-src.tar.zst &&
2018-03-24 09:55:13 -07:00
certUtil -hashfile zstd-src.tar.zst SHA256 > zstd-src.tar.zst.sha256.sig &&
appveyor PushArtifact zstd-src.tar.zst.sha256.sig &&
2018-03-23 17:20:05 -07:00
cd ..\..\bin\ &&
7z a -tzip -mx9 zstd-win-release-%PLATFORM%.zip * &&
2017-03-29 13:08:10 -07:00
appveyor PushArtifact zstd-win-release-%PLATFORM%.zip
)
2016-05-18 07:38:36 -07:00
)
2017-03-14 15:59:57 -07:00
- if [%HOST%]==[visual] (
2016-05-18 00:07:28 -07:00
ECHO *** &&
2016-08-10 05:17:28 -07:00
ECHO *** Building Visual Studio 2008 %PLATFORM%\%CONFIGURATION% in %APPVEYOR_BUILD_FOLDER% &&
2016-05-18 00:07:28 -07:00
ECHO *** &&
2016-09-19 05:58:14 -07:00
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" &&
DIR build\VS2008\bin\%PLATFORM%\%CONFIGURATION%\*.exe &&
MD5sum build/VS2008/bin/%PLATFORM%/%CONFIGURATION%/*.exe &&
COPY build\VS2008\bin\%PLATFORM%\%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2008_%PLATFORM%_%CONFIGURATION%.exe &&
2016-05-18 00:07:28 -07:00
ECHO *** &&
ECHO *** Building Visual Studio 2010 %PLATFORM%\%CONFIGURATION% &&
ECHO *** &&
2016-09-19 05:58:14 -07:00
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" &&
2016-11-14 06:59:57 -08:00
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
2016-09-19 05:58:14 -07:00
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" &&
2016-11-14 06:59:57 -08:00
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2010_%PLATFORM%_%CONFIGURATION%.exe &&
2016-05-18 00:07:28 -07:00
ECHO *** &&
ECHO *** Building Visual Studio 2012 %PLATFORM%\%CONFIGURATION% &&
ECHO *** &&
2016-09-19 05:58:14 -07:00
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" &&
2016-11-14 06:59:57 -08:00
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
2016-09-19 05:58:14 -07:00
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" &&
2016-11-14 06:59:57 -08:00
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2012_%PLATFORM%_%CONFIGURATION%.exe &&
2016-05-18 00:07:28 -07:00
ECHO *** &&
ECHO *** Building Visual Studio 2013 %PLATFORM%\%CONFIGURATION% &&
ECHO *** &&
2016-09-19 05:58:14 -07:00
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" &&
2016-11-14 06:59:57 -08:00
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
2016-09-19 05:58:14 -07:00
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" &&
2016-11-14 06:59:57 -08:00
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2013_%PLATFORM%_%CONFIGURATION%.exe &&
2016-05-18 00:07:28 -07:00
ECHO *** &&
ECHO *** Building Visual Studio 2015 %PLATFORM%\%CONFIGURATION% &&
ECHO *** &&
2016-09-19 05:58:14 -07:00
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" &&
2016-11-14 06:59:57 -08:00
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
2016-09-19 05:58:14 -07:00
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" &&
2016-11-14 06:59:57 -08:00
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2015_%PLATFORM%_%CONFIGURATION%.exe &&
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe tests\
2016-05-18 00:07:28 -07:00
)
2016-05-16 05:48:04 -07:00
2017-03-14 15:59:57 -07:00
test_script :
2016-05-19 06:50:58 -07:00
- ECHO Testing %COMPILER% %PLATFORM% %CONFIGURATION%
2017-03-29 14:40:11 -07:00
- SET "CC=gcc"
- SET "CXX=g++"
2017-03-14 15:59:57 -07:00
- if [%TEST%]==[cmake] (
2017-02-10 03:01:14 -08:00
mkdir build\cmake\build &&
cd build\cmake\build &&
cmake -G "Visual Studio 14 2015 Win64" .. &&
cd ..\..\.. &&
2017-03-14 15:59:57 -07:00
make clean
)
2017-04-27 16:24:53 -07:00
- SET "FUZZERTEST=-T30s"
2017-03-14 15:59:57 -07:00
- if [%HOST%]==[visual] if [%CONFIGURATION%]==[Release] (
2016-08-18 06:17:18 -07:00
CD tests &&
2016-05-30 02:33:52 -07:00
SET ZSTD=./zstd.exe &&
sh -e playTests.sh --test-large-data &&
2016-05-31 02:46:16 -07:00
fullbench.exe -i1 &&
fullbench.exe -i1 -P0 &&
2016-08-18 06:17:18 -07:00
fuzzer_VS2008_%PLATFORM%_Release.exe %FUZZERTEST% &&
fuzzer_VS2010_%PLATFORM%_Release.exe %FUZZERTEST% &&
fuzzer_VS2012_%PLATFORM%_Release.exe %FUZZERTEST% &&
fuzzer_VS2013_%PLATFORM%_Release.exe %FUZZERTEST% &&
fuzzer_VS2015_%PLATFORM%_Release.exe %FUZZERTEST%
2016-05-18 00:07:28 -07:00
)
2016-09-12 05:17:26 -07:00
2017-03-14 15:59:57 -07:00
-
version : 1.0 .{build}
environment :
matrix :
- COMPILER : "gcc"
HOST : "mingw"
PLATFORM : "x64"
2018-07-30 07:56:18 -07:00
SCRIPT : "CPPFLAGS=-DDEBUGLEVEL=2 CFLAGS=-Werror make -j allzstd DEBUGLEVEL=2"
2017-03-14 15:59:57 -07:00
- COMPILER : "gcc"
HOST : "mingw"
PLATFORM : "x86"
2018-07-30 08:08:40 -07:00
SCRIPT : "CFLAGS=-Werror make -j allzstd"
2017-03-14 15:59:57 -07:00
- COMPILER : "clang"
HOST : "mingw"
PLATFORM : "x64"
2018-07-30 08:08:40 -07:00
SCRIPT : "CFLAGS='--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion' make -j allzstd"
2017-03-07 12:08:15 -08:00
2017-03-14 15:59:57 -07:00
- COMPILER : "visual"
HOST : "visual"
PLATFORM : "x64"
CONFIGURATION : "Debug"
- COMPILER : "visual"
HOST : "visual"
PLATFORM : "Win32"
CONFIGURATION : "Debug"
- COMPILER : "visual"
HOST : "visual"
PLATFORM : "x64"
CONFIGURATION : "Release"
- COMPILER : "visual"
HOST : "visual"
PLATFORM : "Win32"
CONFIGURATION : "Release"
2016-09-12 05:17:26 -07:00
2017-03-14 15:59:57 -07:00
install :
- ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION%
- SET PATH_ORIGINAL=%PATH%
- if [%HOST%]==[mingw] (
2017-04-13 14:40:06 -07:00
SET "PATH_MINGW32=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin" &&
SET "PATH_MINGW64=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin" &&
COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin\make.exe &&
COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin\make.exe
2017-03-14 15:59:57 -07:00
)
- IF [%HOST%]==[visual] 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;"
)
build_script :
- ECHO Building %COMPILER% %PLATFORM% %CONFIGURATION%
- if [%HOST%]==[mingw] (
( if [%PLATFORM%]==[x64] (
SET "PATH=%PATH_MINGW64%;%PATH_ORIGINAL%"
) else if [%PLATFORM%]==[x86] (
SET "PATH=%PATH_MINGW32%;%PATH_ORIGINAL%"
) ) &&
make -v &&
sh -c "%COMPILER% -v" &&
2017-04-14 11:33:04 -07:00
set "CC=%COMPILER%" &&
sh -c "%SCRIPT%"
2017-03-14 15:59:57 -07:00
)
- if [%HOST%]==[visual] (
ECHO *** &&
ECHO *** Building Visual Studio 2015 %PLATFORM%\%CONFIGURATION% &&
ECHO *** &&
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" &&
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
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" &&
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\fuzzer.exe tests\fuzzer_VS2015_%PLATFORM%_%CONFIGURATION%.exe &&
COPY build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe tests\
)