summaryrefslogtreecommitdiffstats
path: root/appveyor.yml
diff options
context:
space:
mode:
authorinikep <inikep@gmail.com>2016-09-02 22:52:11 (GMT)
committerinikep <inikep@gmail.com>2016-09-02 22:52:11 (GMT)
commit81d90609b8b9ce3b27b5532358c63b4aacd53b1c (patch)
tree5c241ea78333b38d80cab290fb9c9ed69a13ebbd /appveyor.yml
parentc200f7e09f7338114abf2e48b427977963601569 (diff)
downloadlz4-81d90609b8b9ce3b27b5532358c63b4aacd53b1c.zip
lz4-81d90609b8b9ce3b27b5532358c63b4aacd53b1c.tar.gz
lz4-81d90609b8b9ce3b27b5532358c63b4aacd53b1c.tar.bz2
added appveyor.yml
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml86
1 files changed, 86 insertions, 0 deletions
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000..e941a7e
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,86 @@
+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"
+ MAKE_PARAMS: "-C programs lz4 fullbench"
+ PLATFORM: "mingw64"
+ - COMPILER: "gcc"
+ MAKE_PARAMS: "-C programs lz4 fullbench"
+ PLATFORM: "mingw32"
+ - COMPILER: "gcc"
+ MAKE_PARAMS: '-C programs lz4 fullbench CC=clang MOREFLAGS="--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion"'
+ PLATFORM: "clang"
+
+install:
+ - ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION%
+ - 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 ----- &&
+ ECHO make -%MAKE_PARAMS%- &&
+ make %MAKE_PARAMS%
+ ) ELSE (
+ 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" &&
+ COPY visual\VS2010\bin\%PLATFORM%\%CONFIGURATION%\*.exe programs\
+ )
+
+test_script:
+ - ECHO *** &&
+ ECHO Testing %COMPILER% %PLATFORM% %CONFIGURATION% &&
+ ECHO ***
+ - if not [%COMPILER%]==[unknown] (
+ CD programs &&
+ lz4 -h &&
+ lz4 -i1b lz4.exe &&
+ lz4 -i1b5 lz4.exe &&
+ lz4 -i1b10 lz4.exe &&
+ lz4 -i1b15 lz4.exe &&
+ echo lz4 tested &&
+ fullbench.exe -i1 fullbench.exe
+ )