Home | History | Annotate | Download | only in lz4
      1 version: 1.0.{build}
      2 environment:
      3   matrix:
      4   - COMPILER: "visual"
      5     CONFIGURATION: "Debug"
      6     PLATFORM: "x64"
      7   - COMPILER: "visual"
      8     CONFIGURATION: "Debug"
      9     PLATFORM: "Win32"
     10   - COMPILER: "visual"
     11     CONFIGURATION: "Release"
     12     PLATFORM: "x64"
     13   - COMPILER: "visual"
     14     CONFIGURATION: "Release"
     15     PLATFORM: "Win32"
     16   - COMPILER: "gcc"
     17     PLATFORM: "mingw64"
     18   - COMPILER: "gcc"
     19     PLATFORM: "mingw32"
     20   - COMPILER: "gcc"
     21     PLATFORM: "clang"
     22 
     23 install:
     24   - ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION%
     25   - MKDIR bin
     26   - if [%COMPILER%]==[gcc] SET PATH_ORIGINAL=%PATH%
     27   - if [%COMPILER%]==[gcc] (
     28       SET "PATH_MINGW32=c:\MinGW\bin;c:\MinGW\usr\bin" &&
     29       SET "PATH_MINGW64=c:\msys64\mingw64\bin;c:\msys64\usr\bin" &&
     30       COPY C:\MinGW\bin\mingw32-make.exe C:\MinGW\bin\make.exe &&
     31       COPY C:\MinGW\bin\gcc.exe C:\MinGW\bin\cc.exe
     32     ) else (
     33       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;")
     34     )
     35 
     36 build_script:
     37   - if [%PLATFORM%]==[mingw32] SET PATH=%PATH_MINGW32%;%PATH_ORIGINAL%
     38   - if [%PLATFORM%]==[mingw64] SET PATH=%PATH_MINGW64%;%PATH_ORIGINAL%
     39   - if [%PLATFORM%]==[clang] SET PATH=%PATH_MINGW64%;%PATH_ORIGINAL%
     40   - ECHO *** &&
     41       ECHO Building %COMPILER% %PLATFORM% %CONFIGURATION% &&
     42       ECHO ***
     43   - if [%PLATFORM%]==[clang] (clang -v)
     44   - if [%COMPILER%]==[gcc] (gcc -v)
     45   - if [%COMPILER%]==[gcc] (
     46       echo ----- &&
     47       make -v &&
     48       echo ----- &&
     49       if not [%PLATFORM%]==[clang] (
     50         make -C programs lz4 && make -C tests fullbench && make -C lib lib
     51       ) ELSE (
     52         make -C programs lz4 CC=clang MOREFLAGS="--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion" &&
     53         make -C tests fullbench CC=clang MOREFLAGS="--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion" &&
     54         make -C lib lib CC=clang MOREFLAGS="--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion"
     55       )
     56     )
     57   - if [%COMPILER%]==[gcc] if not [%PLATFORM%]==[clang] (
     58       MKDIR bin\dll bin\static bin\example bin\include &&
     59       COPY tests\fullbench.c bin\example\ &&
     60       COPY lib\xxhash.c bin\example\ &&
     61       COPY lib\xxhash.h bin\example\ &&
     62       COPY lib\lz4.h bin\include\ &&
     63       COPY lib\lz4hc.h bin\include\ &&
     64       COPY lib\lz4frame.h bin\include\ &&
     65       COPY lib\liblz4.a bin\static\liblz4_static.lib &&
     66       COPY lib\dll\liblz4.* bin\dll\ &&
     67       COPY lib\dll\example\Makefile bin\example\ &&
     68       COPY lib\dll\example\fullbench-dll.* bin\example\ &&
     69       COPY lib\dll\example\README.md bin\ &&
     70       COPY programs\lz4.exe bin\lz4.exe
     71     )
     72   - if [%COMPILER%]==[gcc] if [%PLATFORM%]==[mingw64] (
     73       7z.exe a bin\lz4_x64.zip NEWS .\bin\lz4.exe .\bin\README.md .\bin\example .\bin\dll .\bin\static .\bin\include &&
     74       appveyor PushArtifact bin\lz4_x64.zip
     75     )
     76   - if [%COMPILER%]==[gcc] if [%PLATFORM%]==[mingw32] (
     77       7z.exe a bin\lz4_x86.zip NEWS .\bin\lz4.exe .\bin\README.md .\bin\example .\bin\dll .\bin\static .\bin\include &&
     78       appveyor PushArtifact bin\lz4_x86.zip
     79     )
     80   - if [%COMPILER%]==[gcc] (COPY tests\fullbench.exe programs\)
     81   - if [%COMPILER%]==[visual] (
     82       ECHO *** &&
     83       ECHO *** Building Visual Studio 2010 %PLATFORM%\%CONFIGURATION% &&
     84       ECHO *** &&
     85       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" &&
     86       ECHO *** &&
     87       ECHO *** Building Visual Studio 2012 %PLATFORM%\%CONFIGURATION% &&
     88       ECHO *** &&
     89       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" &&
     90       ECHO *** &&
     91       ECHO *** Building Visual Studio 2013 %PLATFORM%\%CONFIGURATION% &&
     92       ECHO *** &&
     93       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" &&
     94       ECHO *** &&
     95       ECHO *** Building Visual Studio 2015 %PLATFORM%\%CONFIGURATION% &&
     96       ECHO *** &&
     97       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" &&
     98       COPY visual\VS2010\bin\%PLATFORM%_%CONFIGURATION%\*.exe programs\
     99     )
    100 
    101 test_script:
    102   - ECHO *** &&
    103       ECHO Testing %COMPILER% %PLATFORM% %CONFIGURATION% &&
    104       ECHO ***
    105   - if not [%COMPILER%]==[unknown] (
    106       CD programs &&
    107       lz4 -h &&
    108       lz4 -i1b lz4.exe &&
    109       lz4 -i1b5 lz4.exe &&
    110       lz4 -i1b10 lz4.exe &&
    111       lz4 -i1b15 lz4.exe &&
    112       echo ------- lz4 tested ------- &&
    113       fullbench.exe -i1 fullbench.exe
    114     )
    115 
    116 artifacts:
    117   - path: bin\lz4_x64.zip
    118   - path: bin\lz4_x86.zip
    119 
    120 deploy:
    121 - provider: GitHub
    122   artifact: bin\lz4_x64.zip
    123   auth_token:
    124     secure: w6UJaGie0qbZvffr/fqyhO/Vj8rMiQWnv9a8qm3gxfngdHDTMT42wYupqJpIExId
    125   force_update: true
    126   prerelease: true
    127   on:
    128     COMPILER: gcc
    129     PLATFORM: "mingw64"
    130     appveyor_repo_tag: true
    131 
    132 - provider: GitHub
    133   artifact: bin\lz4_x86.zip
    134   auth_token:
    135     secure: w6UJaGie0qbZvffr/fqyhO/Vj8rMiQWnv9a8qm3gxfngdHDTMT42wYupqJpIExId
    136   force_update: true
    137   prerelease: true
    138   on:
    139     COMPILER: gcc
    140     PLATFORM: "mingw32"
    141     appveyor_repo_tag: true
    142