2016-09-02 22:52:11 +00:00
|
|
|
version: 1.0.{build}
|
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- COMPILER: "visual"
|
|
|
|
CONFIGURATION: "Debug"
|
|
|
|
PLATFORM: "x64"
|
|
|
|
- COMPILER: "visual"
|
|
|
|
CONFIGURATION: "Debug"
|
|
|
|
PLATFORM: "Win32"
|
|
|
|
- COMPILER: "visual"
|
|
|
|
CONFIGURATION: "Release"
|
|
|
|
PLATFORM: "x64"
|
|
|
|
- COMPILER: "visual"
|
|
|
|
CONFIGURATION: "Release"
|
|
|
|
PLATFORM: "Win32"
|
|
|
|
- COMPILER: "gcc"
|
|
|
|
PLATFORM: "mingw64"
|
|
|
|
- COMPILER: "gcc"
|
|
|
|
PLATFORM: "mingw32"
|
|
|
|
- COMPILER: "gcc"
|
|
|
|
PLATFORM: "clang"
|
|
|
|
|
|
|
|
install:
|
|
|
|
- ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION%
|
2016-11-15 12:29:33 +00:00
|
|
|
- MKDIR bin
|
2016-09-02 22:52:11 +00:00
|
|
|
- if [%COMPILER%]==[gcc] SET PATH_ORIGINAL=%PATH%
|
|
|
|
- if [%COMPILER%]==[gcc] (
|
|
|
|
SET "PATH_MINGW32=c:\MinGW\bin;c:\MinGW\usr\bin" &&
|
|
|
|
SET "PATH_MINGW64=c:\msys64\mingw64\bin;c:\msys64\usr\bin" &&
|
|
|
|
COPY C:\MinGW\bin\mingw32-make.exe C:\MinGW\bin\make.exe &&
|
|
|
|
COPY C:\MinGW\bin\gcc.exe C:\MinGW\bin\cc.exe
|
|
|
|
) else (
|
|
|
|
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:
|
|
|
|
- if [%PLATFORM%]==[mingw32] SET PATH=%PATH_MINGW32%;%PATH_ORIGINAL%
|
|
|
|
- if [%PLATFORM%]==[mingw64] SET PATH=%PATH_MINGW64%;%PATH_ORIGINAL%
|
|
|
|
- if [%PLATFORM%]==[clang] SET PATH=%PATH_MINGW64%;%PATH_ORIGINAL%
|
|
|
|
- ECHO *** &&
|
|
|
|
ECHO Building %COMPILER% %PLATFORM% %CONFIGURATION% &&
|
|
|
|
ECHO ***
|
|
|
|
- if [%PLATFORM%]==[clang] (clang -v)
|
|
|
|
- if [%COMPILER%]==[gcc] (gcc -v)
|
|
|
|
- if [%COMPILER%]==[gcc] (
|
|
|
|
echo ----- &&
|
|
|
|
make -v &&
|
|
|
|
echo ----- &&
|
2016-11-07 12:43:25 +00:00
|
|
|
if not [%PLATFORM%]==[clang] (
|
2016-11-15 12:49:20 +00:00
|
|
|
make -C programs lz4 && make -C tests fullbench && make -C lib lib
|
2016-11-07 12:43:25 +00:00
|
|
|
) ELSE (
|
2016-11-07 13:00:30 +00:00
|
|
|
make -C programs lz4 CC=clang MOREFLAGS="--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion" &&
|
2016-11-15 09:22:59 +00:00
|
|
|
make -C tests fullbench CC=clang MOREFLAGS="--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion" &&
|
2016-11-15 12:49:20 +00:00
|
|
|
make -C lib lib CC=clang MOREFLAGS="--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion"
|
2016-11-07 12:43:25 +00:00
|
|
|
)
|
|
|
|
)
|
2016-11-15 09:22:59 +00:00
|
|
|
- if [%COMPILER%]==[gcc] if [%PLATFORM%]==[mingw64] (
|
2016-11-15 12:29:33 +00:00
|
|
|
MKDIR bin\dll bin\static bin\fullbench bin\include &&
|
|
|
|
COPY tests\fullbench.c bin\fullbench\ &&
|
|
|
|
COPY lib\xxhash.c bin\fullbench\ &&
|
|
|
|
COPY lib\xxhash.h bin\fullbench\ &&
|
|
|
|
COPY lib\lz4.h bin\include\ &&
|
|
|
|
COPY lib\lz4hc.h bin\include\ &&
|
|
|
|
COPY lib\lz4frame.h bin\include\ &&
|
|
|
|
COPY lib\dll\liblz4.* bin\dll\ &&
|
|
|
|
COPY lib\dll\fullbench-dll\Makefile bin\ &&
|
|
|
|
COPY lib\dll\fullbench-dll\fullbench-dll.* bin\fullbench\ &&
|
|
|
|
COPY lib\dll\README.md bin\ &&
|
|
|
|
COPY lib\liblz4.a bin\static\liblz4_static.lib &&
|
|
|
|
7z.exe a bin\liblz4-dll_x64.zip .\bin\fullbench .\bin\dll .\bin\static .\bin\include .\bin\Makefile .\bin\README.md &&
|
2016-11-15 09:22:59 +00:00
|
|
|
appveyor PushArtifact bin\liblz4-dll_x64.zip &&
|
|
|
|
COPY programs\lz4.exe bin\lz4.exe &&
|
|
|
|
appveyor PushArtifact bin\lz4.exe
|
|
|
|
)
|
|
|
|
- if [%COMPILER%]==[gcc] if [%PLATFORM%]==[mingw32] (
|
|
|
|
COPY programs\lz4.exe bin\lz4_32.exe &&
|
|
|
|
appveyor PushArtifact bin\lz4_32.exe
|
|
|
|
)
|
2016-11-07 13:14:42 +00:00
|
|
|
- if [%COMPILER%]==[gcc] (COPY tests\fullbench.exe programs\)
|
2016-11-07 12:43:25 +00:00
|
|
|
- if [%COMPILER%]==[visual] (
|
2016-09-02 22:52:11 +00:00
|
|
|
ECHO *** &&
|
|
|
|
ECHO *** Building Visual Studio 2010 %PLATFORM%\%CONFIGURATION% &&
|
|
|
|
ECHO *** &&
|
|
|
|
msbuild "visual\VS2010\lz4.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" &&
|
|
|
|
ECHO *** &&
|
|
|
|
ECHO *** Building Visual Studio 2012 %PLATFORM%\%CONFIGURATION% &&
|
|
|
|
ECHO *** &&
|
|
|
|
msbuild "visual\VS2010\lz4.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" &&
|
|
|
|
ECHO *** &&
|
|
|
|
ECHO *** Building Visual Studio 2013 %PLATFORM%\%CONFIGURATION% &&
|
|
|
|
ECHO *** &&
|
|
|
|
msbuild "visual\VS2010\lz4.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" &&
|
|
|
|
ECHO *** &&
|
|
|
|
ECHO *** Building Visual Studio 2015 %PLATFORM%\%CONFIGURATION% &&
|
|
|
|
ECHO *** &&
|
|
|
|
msbuild "visual\VS2010\lz4.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-09 13:05:44 +00:00
|
|
|
COPY visual\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe programs\
|
2016-09-02 22:52:11 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
test_script:
|
|
|
|
- ECHO *** &&
|
|
|
|
ECHO Testing %COMPILER% %PLATFORM% %CONFIGURATION% &&
|
|
|
|
ECHO ***
|
2016-11-15 09:35:29 +00:00
|
|
|
- if [%COMPILER%]==[unknown] (
|
2016-09-02 22:52:11 +00:00
|
|
|
CD programs &&
|
|
|
|
lz4 -h &&
|
|
|
|
lz4 -i1b lz4.exe &&
|
|
|
|
lz4 -i1b5 lz4.exe &&
|
|
|
|
lz4 -i1b10 lz4.exe &&
|
|
|
|
lz4 -i1b15 lz4.exe &&
|
2016-11-09 13:05:44 +00:00
|
|
|
echo ------- lz4 tested ------- &&
|
2016-09-02 22:52:11 +00:00
|
|
|
fullbench.exe -i1 fullbench.exe
|
|
|
|
)
|
2016-11-15 09:22:59 +00:00
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: bin\lz4.exe
|
|
|
|
- path: bin\lz4_32.exe
|
|
|
|
- path: bin\liblz4-dll_x64.zip
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
- provider: GitHub
|
|
|
|
auth_token:
|
|
|
|
secure: LgJo8emYc3sFnlNWkGl4/VYK3nk/8+RagcsqDlAi3xeqNGNutnKjcftjg84uJoT4
|
|
|
|
artifact: bin\lz4.exe
|
|
|
|
force_update: true
|
|
|
|
on:
|
|
|
|
COMPILER: gcc
|
|
|
|
PLATFORM: "mingw64"
|
|
|
|
appveyor_repo_tag: true
|
|
|
|
- provider: GitHub
|
|
|
|
auth_token:
|
|
|
|
secure: LgJo8emYc3sFnlNWkGl4/VYK3nk/8+RagcsqDlAi3xeqNGNutnKjcftjg84uJoT4
|
|
|
|
artifact: bin\lz4_32.exe
|
|
|
|
force_update: true
|
|
|
|
on:
|
|
|
|
COMPILER: gcc
|
|
|
|
PLATFORM: "mingw32"
|
|
|
|
appveyor_repo_tag: true
|
|
|
|
- provider: GitHub
|
|
|
|
auth_token:
|
|
|
|
secure: LgJo8emYc3sFnlNWkGl4/VYK3nk/8+RagcsqDlAi3xeqNGNutnKjcftjg84uJoT4
|
|
|
|
artifact: bin\liblz4-dll_x64.zip
|
|
|
|
force_update: true
|
|
|
|
on:
|
|
|
|
COMPILER: gcc
|
2016-11-15 09:35:29 +00:00
|
|
|
PLATFORM: "mingw64"
|
2016-11-15 09:22:59 +00:00
|
|
|
appveyor_repo_tag: true
|