2017-03-14 22:59:57 +00:00
-
version : 1.0 .{build}
branches :
only :
- dev
- master
environment :
matrix :
- COMPILER : "gcc"
HOST : "mingw"
PLATFORM : "x64"
SCRIPT : "make allarch && make -C tests test-symbols fullbench-dll fullbench-lib"
ARTIFACT : "true"
- COMPILER : "gcc"
HOST : "mingw"
PLATFORM : "x86"
SCRIPT : "make lib && make zstd && make -C tests allnothread"
ARTIFACT : "true"
- COMPILER : "clang"
HOST : "mingw"
PLATFORM : "x64"
SCRIPT : "MOREFLAGS='--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion' make allarch"
2016-05-16 12:48:04 +00:00
2017-03-14 22:59:57 +00:00
- COMPILER : "gcc"
HOST : "mingw"
PLATFORM : "x64"
SCRIPT : ""
TEST : "cmake"
- COMPILER : "gcc"
HOST : "mingw"
PLATFORM : "x64"
SCRIPT : ""
TEST : "pzstd"
- 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 13:50:58 +00:00
- ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION%
2017-03-14 22:59:57 +00:00
- SET PATH_ORIGINAL=%PATH%
- if [%HOST%]==[mingw] (
SET "PATH_MINGW32=C:\MinGW\bin;C:\MinGW\usr\bin" &&
SET "PATH_MINGW64=C:\msys64\mingw64\bin;C:\msys64\usr\bin" &&
2016-12-08 13:00:09 +00:00
COPY C:\msys64\usr\bin\make.exe C:\MinGW\bin\make.exe &&
2016-07-19 10:23:32 +00:00
COPY C:\MinGW\bin\gcc.exe C:\MinGW\bin\cc.exe
2017-03-14 22:59:57 +00: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 07:07:28 +00:00
)
2016-05-09 12:04:40 +00:00
2017-03-14 22:59:57 +00: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%"
) ) &&
2016-07-19 10:23:32 +00:00
make -v &&
2017-03-14 22:59:57 +00:00
sh -c "%COMPILER% -v" &&
sh -c "CC=%COMPILER% %SCRIPT%" &&
( if [%COMPILER%]==[gcc] if [%ARTIFACT%]==[true] COPY programs\zstd.exe zstd_%PLATFORM%.exe && appveyor PushArtifact zstd_%PLATFORM%.exe )
2016-05-18 14:38:36 +00:00
)
2017-03-14 22:59:57 +00:00
- if [%HOST%]==[visual] (
2016-05-18 07:07:28 +00:00
ECHO *** &&
2016-08-10 12:17:28 +00:00
ECHO *** Building Visual Studio 2008 %PLATFORM%\%CONFIGURATION% in %APPVEYOR_BUILD_FOLDER% &&
2016-05-18 07:07:28 +00:00
ECHO *** &&
2016-09-19 12:58:14 +00: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 07:07:28 +00:00
ECHO *** &&
ECHO *** Building Visual Studio 2010 %PLATFORM%\%CONFIGURATION% &&
ECHO *** &&
2016-09-19 12:58:14 +00: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 14:59:57 +00:00
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
2016-09-19 12:58:14 +00: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 14:59:57 +00: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 07:07:28 +00:00
ECHO *** &&
ECHO *** Building Visual Studio 2012 %PLATFORM%\%CONFIGURATION% &&
ECHO *** &&
2016-09-19 12:58:14 +00: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 14:59:57 +00:00
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
2016-09-19 12:58:14 +00: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 14:59:57 +00: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 07:07:28 +00:00
ECHO *** &&
ECHO *** Building Visual Studio 2013 %PLATFORM%\%CONFIGURATION% &&
ECHO *** &&
2016-09-19 12:58:14 +00: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 14:59:57 +00:00
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
2016-09-19 12:58:14 +00: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 14:59:57 +00: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 07:07:28 +00:00
ECHO *** &&
ECHO *** Building Visual Studio 2015 %PLATFORM%\%CONFIGURATION% &&
ECHO *** &&
2016-09-19 12:58:14 +00: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 14:59:57 +00:00
DIR build\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe &&
MD5sum build/VS2010/bin/%PLATFORM%_%CONFIGURATION%/*.exe &&
2016-09-19 12:58:14 +00: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 14:59:57 +00: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 07:07:28 +00:00
)
2016-05-16 12:48:04 +00:00
2017-03-14 22:59:57 +00:00
test_script :
2016-05-19 13:50:58 +00:00
- ECHO Testing %COMPILER% %PLATFORM% %CONFIGURATION%
2017-03-14 22:59:57 +00:00
- if [%TEST%]==[cmake] (
2017-02-10 11:01:14 +00:00
mkdir build\cmake\build &&
cd build\cmake\build &&
cmake -G "Visual Studio 14 2015 Win64" .. &&
cd ..\..\.. &&
2017-03-14 22:59:57 +00:00
make clean
)
- if [%TEST%]==[pzstd] (
2017-02-10 11:01:14 +00:00
make -C contrib\pzstd googletest-mingw64 &&
make -C contrib\pzstd pzstd.exe &&
make -C contrib\pzstd tests &&
make -C contrib\pzstd check &&
make -C contrib\pzstd clean
2016-05-18 07:07:28 +00:00
)
2017-03-14 22:59:57 +00:00
- if [%HOST%]==[visual] if [%CONFIGURATION%]==[Release] (
2017-03-21 18:19:48 +00:00
SET "FUZZERTEST=-T1mn" &&
2016-08-18 13:17:18 +00:00
CD tests &&
2016-05-30 09:33:52 +00:00
SET ZSTD=./zstd.exe &&
sh -e playTests.sh --test-large-data &&
2016-05-31 09:46:16 +00:00
fullbench.exe -i1 &&
fullbench.exe -i1 -P0 &&
2016-08-18 13:17:18 +00: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 07:07:28 +00:00
)
2016-09-12 12:17:26 +00:00
2017-03-14 22:59:57 +00:00
-
version : 1.0 .{build}
branches :
except :
- dev
- master
environment :
matrix :
- COMPILER : "gcc"
HOST : "mingw"
PLATFORM : "x64"
SCRIPT : "make allarch"
- COMPILER : "gcc"
HOST : "mingw"
PLATFORM : "x86"
SCRIPT : "make lib && make zstd && make -C tests allnothread"
- COMPILER : "clang"
HOST : "mingw"
PLATFORM : "x64"
SCRIPT : "MOREFLAGS='--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion' make allarch"
2017-03-07 20:08:15 +00:00
2017-03-14 22:59:57 +00: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 12:17:26 +00:00
2017-03-14 22:59:57 +00:00
install :
- ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION%
- SET PATH_ORIGINAL=%PATH%
- if [%HOST%]==[mingw] (
SET "PATH_MINGW32=C:\MinGW\bin;C:\MinGW\usr\bin" &&
SET "PATH_MINGW64=C:\msys64\mingw64\bin;C:\msys64\usr\bin" &&
COPY C:\msys64\usr\bin\make.exe C:\MinGW\bin\make.exe &&
COPY C:\MinGW\bin\gcc.exe C:\MinGW\bin\cc.exe
)
- 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" &&
sh -c "CC=%COMPILER% %SCRIPT%"
)
- 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\
)