2016-05-09 12:04:40 +00:00
|
|
|
version: 1.0.{build}
|
2016-05-18 07:07:28 +00:00
|
|
|
environment:
|
|
|
|
matrix:
|
2016-09-12 12:17:26 +00:00
|
|
|
- COMPILER: "gcc"
|
|
|
|
MAKE_PARAMS: "test"
|
|
|
|
PLATFORM: "mingw64"
|
|
|
|
- COMPILER: "gcc"
|
|
|
|
MAKE_PARAMS: "test"
|
|
|
|
PLATFORM: "mingw32"
|
2016-05-19 13:50:58 +00:00
|
|
|
- COMPILER: "visual"
|
2016-06-01 08:50:17 +00:00
|
|
|
CONFIGURATION: "Debug"
|
2016-05-19 13:50:58 +00:00
|
|
|
PLATFORM: "x64"
|
|
|
|
- COMPILER: "visual"
|
|
|
|
CONFIGURATION: "Debug"
|
2016-05-18 07:07:28 +00:00
|
|
|
PLATFORM: "Win32"
|
2016-05-19 13:50:58 +00:00
|
|
|
- COMPILER: "visual"
|
2016-06-01 08:50:17 +00:00
|
|
|
CONFIGURATION: "Release"
|
2016-05-18 07:07:28 +00:00
|
|
|
PLATFORM: "x64"
|
2016-06-01 08:50:17 +00:00
|
|
|
- COMPILER: "visual"
|
|
|
|
CONFIGURATION: "Release"
|
|
|
|
PLATFORM: "Win32"
|
2016-05-16 12:48:04 +00:00
|
|
|
|
2016-05-18 07:07:28 +00:00
|
|
|
install:
|
2016-05-19 13:50:58 +00:00
|
|
|
- ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION%
|
2016-09-12 12:17:26 +00:00
|
|
|
- MKDIR bin
|
2016-05-19 13:50:58 +00:00
|
|
|
- if [%COMPILER%]==[gcc] SET PATH_ORIGINAL=%PATH%
|
|
|
|
- if [%COMPILER%]==[gcc] (
|
2016-08-18 11:53:26 +00:00
|
|
|
SET "CLANG_PARAMS=-C tests zstd fullbench fuzzer zbufftest paramgrill datagen CC=clang MOREFLAGS="--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion"" &&
|
2016-05-18 07:07:28 +00:00
|
|
|
SET "PATH_MINGW32=c:\MinGW\bin;c:\MinGW\usr\bin" &&
|
|
|
|
SET "PATH_MINGW64=c:\msys64\mingw64\bin;c:\msys64\usr\bin" &&
|
2016-07-19 10:23:32 +00:00
|
|
|
COPY C:\MinGW\bin\mingw32-make.exe C:\MinGW\bin\make.exe &&
|
|
|
|
COPY C:\MinGW\bin\gcc.exe C:\MinGW\bin\cc.exe
|
2016-05-18 07:07:28 +00:00
|
|
|
) else (
|
2016-05-19 10:16:14 +00:00
|
|
|
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
|
|
|
|
2016-05-18 07:07:28 +00:00
|
|
|
build_script:
|
2016-05-19 13:50:58 +00:00
|
|
|
- ECHO Building %COMPILER% %PLATFORM% %CONFIGURATION%
|
2016-09-19 12:58:14 +00:00
|
|
|
- if [%PLATFORM%]==[mingw32] SET PATH=%PATH_MINGW32%;%PATH_ORIGINAL%
|
|
|
|
- if [%PLATFORM%]==[mingw64] SET PATH=%PATH_MINGW64%;%PATH_ORIGINAL%
|
2016-05-18 14:38:36 +00:00
|
|
|
- if [%PLATFORM%]==[mingw64] (
|
2016-05-18 07:07:28 +00:00
|
|
|
make clean &&
|
|
|
|
ECHO *** &&
|
|
|
|
ECHO *** Building clang &&
|
|
|
|
ECHO *** &&
|
|
|
|
ECHO make %CLANG_PARAMS% &&
|
|
|
|
make %CLANG_PARAMS% &&
|
2016-08-18 13:17:18 +00:00
|
|
|
COPY tests\fuzzer.exe tests\fuzzer_clang.exe &&
|
2016-09-06 21:00:55 +00:00
|
|
|
make clean &&
|
|
|
|
ECHO *** &&
|
|
|
|
ECHO *** Building pzstd for %PLATFORM% &&
|
|
|
|
ECHO *** &&
|
2016-09-23 02:00:54 +00:00
|
|
|
make -C contrib\pzstd googletest-mingw64 &&
|
2016-10-07 01:17:08 +00:00
|
|
|
make -C contrib\pzstd all &&
|
|
|
|
make -C contrib\pzstd check &&
|
2016-09-06 21:00:55 +00:00
|
|
|
make -C contrib\pzstd clean
|
2016-05-18 07:07:28 +00:00
|
|
|
)
|
2016-05-19 13:50:58 +00:00
|
|
|
- if [%COMPILER%]==[gcc] (
|
2016-05-18 14:38:36 +00:00
|
|
|
ECHO *** &&
|
|
|
|
ECHO *** Building %PLATFORM% &&
|
|
|
|
ECHO *** &&
|
2016-07-19 10:23:32 +00:00
|
|
|
make -v &&
|
|
|
|
cc -v &&
|
2016-05-18 14:38:36 +00:00
|
|
|
ECHO make %MAKE_PARAMS% &&
|
2016-09-12 12:17:26 +00:00
|
|
|
make %MAKE_PARAMS%
|
|
|
|
)
|
|
|
|
- if [%COMPILER%]==[gcc] if [%PLATFORM%]==[mingw64] (
|
|
|
|
COPY programs\zstd.exe bin\zstd.exe &&
|
|
|
|
appveyor PushArtifact bin\zstd.exe
|
|
|
|
)
|
|
|
|
- if [%COMPILER%]==[gcc] if [%PLATFORM%]==[mingw32] (
|
|
|
|
COPY programs\zstd.exe bin\zstd32.exe &&
|
|
|
|
appveyor PushArtifact bin\zstd32.exe
|
2016-05-18 14:38:36 +00:00
|
|
|
)
|
2016-09-12 12:17:26 +00:00
|
|
|
- if [%COMPILER%]==[gcc] make clean
|
2016-05-19 13:50:58 +00:00
|
|
|
- if [%COMPILER%]==[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" &&
|
|
|
|
DIR build\VS2010\bin\%PLATFORM%\%CONFIGURATION%\*.exe &&
|
|
|
|
MD5sum build/VS2010/bin/%PLATFORM%/%CONFIGURATION%/*.exe &&
|
|
|
|
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" &&
|
|
|
|
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" &&
|
|
|
|
DIR build\VS2010\bin\%PLATFORM%\%CONFIGURATION%\*.exe &&
|
|
|
|
MD5sum build/VS2010/bin/%PLATFORM%/%CONFIGURATION%/*.exe &&
|
|
|
|
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" &&
|
|
|
|
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" &&
|
|
|
|
DIR build\VS2010\bin\%PLATFORM%\%CONFIGURATION%\*.exe &&
|
|
|
|
MD5sum build/VS2010/bin/%PLATFORM%/%CONFIGURATION%/*.exe &&
|
|
|
|
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" &&
|
|
|
|
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" &&
|
|
|
|
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\
|
2016-05-18 07:07:28 +00:00
|
|
|
)
|
2016-05-16 12:48:04 +00:00
|
|
|
|
|
|
|
test_script:
|
2016-05-19 13:50:58 +00:00
|
|
|
- ECHO Testing %COMPILER% %PLATFORM% %CONFIGURATION%
|
2016-05-18 07:07:28 +00:00
|
|
|
- SET FUZZERTEST=-T1mn
|
2016-05-19 13:50:58 +00:00
|
|
|
- if [%COMPILER%]==[gcc] (
|
2016-08-18 13:17:18 +00:00
|
|
|
if [%PLATFORM%]==[mingw64] tests\fuzzer_clang.exe %FUZZERTEST%
|
2016-05-18 07:07:28 +00:00
|
|
|
)
|
2016-05-19 13:50:58 +00:00
|
|
|
- if [%COMPILER%]==[visual] if [%CONFIGURATION%]==[Release] (
|
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
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: bin\zstd.exe
|
2016-09-19 12:58:14 +00:00
|
|
|
- path: bin\zstd32.exe
|
2016-09-12 12:17:26 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
- provider: GitHub
|
|
|
|
auth_token:
|
|
|
|
secure: LgJo8emYc3sFnlNWkGl4/VYK3nk/8+RagcsqDlAi3xeqNGNutnKjcftjg84uJoT4
|
|
|
|
artifact: bin\zstd.exe
|
|
|
|
force_update: true
|
|
|
|
on:
|
|
|
|
branch: autobuild
|
|
|
|
COMPILER: gcc
|
|
|
|
PLATFORM: "mingw64"
|
|
|
|
appveyor_repo_tag: true
|
|
|
|
- provider: GitHub
|
|
|
|
auth_token:
|
|
|
|
secure: LgJo8emYc3sFnlNWkGl4/VYK3nk/8+RagcsqDlAi3xeqNGNutnKjcftjg84uJoT4
|
2016-09-19 12:58:14 +00:00
|
|
|
artifact: bin\zstd32.exe
|
2016-09-12 12:17:26 +00:00
|
|
|
force_update: true
|
|
|
|
on:
|
|
|
|
branch: autobuild
|
|
|
|
COMPILER: gcc
|
|
|
|
PLATFORM: "mingw32"
|
|
|
|
appveyor_repo_tag: true
|