diff options
author | Eugene Kliuchnikov <eustas@google.com> | 2017-09-14 16:14:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-14 16:14:05 +0200 |
commit | 26a34a435cf6389729bdf1eb6ca5d163b02572a8 (patch) | |
tree | 3ad7b540139ff482bb7c54841a8325e53e6ea0ce /scripts/appveyor.yml | |
parent | d7bce1e092a6ef7ef1005db92c395e6b79d83972 (diff) | |
download | brotli-26a34a435cf6389729bdf1eb6ca5d163b02572a8.zip brotli-26a34a435cf6389729bdf1eb6ca5d163b02572a8.tar.gz brotli-26a34a435cf6389729bdf1eb6ca5d163b02572a8.tar.bz2 |
Employ make/gcc on Appveyor + push artifacts (#596)
Diffstat (limited to 'scripts/appveyor.yml')
-rw-r--r-- | scripts/appveyor.yml | 94 |
1 files changed, 44 insertions, 50 deletions
diff --git a/scripts/appveyor.yml b/scripts/appveyor.yml index c342001..62e593b 100644 --- a/scripts/appveyor.yml +++ b/scripts/appveyor.yml @@ -1,65 +1,59 @@ environment:
matrix:
- - BUILD_SYSTEM: CMake
- GENERATOR: Visual Studio 14 2015 Win64
+ - BUILD_SYSTEM: CMake
+ GENERATOR: Visual Studio 14 2015 Win64
- - BUILD_SYSTEM: CMake
- GENERATOR: Visual Studio 14 2015
+ - BUILD_SYSTEM: CMake
+ GENERATOR: Visual Studio 14 2015
- - BUILD_SYSTEM: CMake
- GENERATOR: Visual Studio 12 2013 Win64
+ - BUILD_SYSTEM: Python
+ PYTHON: "C:\\Python27"
+ PYTHON_VERSION: "2.7.x"
+ PYTHON_ARCH: "32"
- - BUILD_SYSTEM: CMake
- GENERATOR: Visual Studio 12 2013
+ - BUILD_SYSTEM: Python
+ PYTHON: "C:\\Python36-x64"
+ PYTHON_VERSION: "3.6.x"
+ PYTHON_ARCH: "64"
- - BUILD_SYSTEM: Python
- PYTHON: "C:\\Python27"
- PYTHON_VERSION: "2.7.x"
- PYTHON_ARCH: "32"
+ - BUILD_SYSTEM: make
+ ARCH: "i686"
- - BUILD_SYSTEM: Python
- PYTHON: "C:\\Python36"
- PYTHON_VERSION: "3.6.x"
- PYTHON_ARCH: "32"
-
- - BUILD_SYSTEM: Python
- PYTHON: "C:\\Python27-x64"
- PYTHON_VERSION: "2.7.x"
- PYTHON_ARCH: "64"
-
- - BUILD_SYSTEM: Python
- PYTHON: "C:\\Python36-x64"
- PYTHON_VERSION: "3.6.x"
- PYTHON_ARCH: "64"
+ - BUILD_SYSTEM: make
+ ARCH: "x86_64"
install:
- - ps: |
- if ($env:BUILD_SYSTEM -eq "Python") {
- # prepend Python to the PATH
- $env:Path = $env:PYTHON + ';' + $env:PYTHON + '\\Scripts;' + $env:PATH
-
- # upgrade pip to avoid out-of-date warnings
- pip install --disable-pip-version-check --user --upgrade pip
-
- # install/upgrade setuptools to build packages
- pip install --upgrade setuptools
- }
+- IF "%BUILD_SYSTEM%"=="Python" (
+ SET "PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%" &&
+ pip install --disable-pip-version-check --user --upgrade pip &&
+ pip install --upgrade setuptools
+ )
+- IF "%BUILD_SYSTEM%"=="make" (
+ IF "%ARCH%"=="i686" (
+ SET "TOOLCHAIN=i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32"
+ ) ELSE (
+ SET "TOOLCHAIN=x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64"
+ )
+ )
before_build:
- - ps: |
- if ($env:BUILD_SYSTEM -eq "CMake") {
- mkdir builddir
- cd builddir
-
- cmake -G "$env:GENERATOR" ..
- }
+- IF "%BUILD_SYSTEM%"=="CMake" ( mkdir builddir && cd builddir && cmake -G "%GENERATOR%" .. )
+- IF "%BUILD_SYSTEM%"=="make" (
+ SET "CC=gcc" &&
+ SET "PATH=C:\mingw-w64\%TOOLCHAIN%\bin;%PATH%" &&
+ COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\%TOOLCHAIN%\bin\make.exe
+ )
build_script:
- - ps: |
- if ($env:BUILD_SYSTEM -eq "CMake") {
- cmake --build . --config Debug
- }
+- IF "%BUILD_SYSTEM%"=="CMake" ( cmake --build . --config Debug )
+- IF "%BUILD_SYSTEM%"=="Python" ( python setup.py build_ext )
+- IF "%BUILD_SYSTEM%"=="make" (
+ sh -c "make brotli" &&
+ cd bin && 7z a -tzip -mx9 brotli-win-%ARCH%.zip brotli.exe &&
+ appveyor PushArtifact brotli-win-%ARCH%.zip && cd ..
+ )
test_script:
- - if "%BUILD_SYSTEM%" == "CMake" ( ctest --output-on-failure --interactive-debug-mode 0 -C Debug )
- - if "%BUILD_SYSTEM%" == "Python" ( python setup.py test )
+- IF "%BUILD_SYSTEM%"=="CMake" ( ctest --output-on-failure --interactive-debug-mode 0 -C Debug )
+- IF "%BUILD_SYSTEM%"=="Python" ( python setup.py test )
+- IF "%BUILD_SYSTEM%"=="make" ( sh -c "make test" )
|