mirror of
https://github.com/google/brotli.git
synced 2024-11-21 19:20:09 +00:00
CI config
* Appveyor: publish artifacts on bintray * Appveyor & Travis: build only master branch
This commit is contained in:
parent
26a34a435c
commit
6b1d0ab53d
@ -1,5 +1,8 @@
|
||||
language: c
|
||||
sudo: false
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
matrix:
|
||||
include:
|
||||
###
|
||||
|
@ -1,3 +1,7 @@
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
|
||||
environment:
|
||||
matrix:
|
||||
- BUILD_SYSTEM: CMake
|
||||
@ -41,7 +45,8 @@ before_build:
|
||||
- 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
|
||||
COPY C:\msys64\usr\bin\make.exe C:\mingw-w64\%TOOLCHAIN%\bin\make.exe &&
|
||||
FOR /f %%i in ('C:\cygwin64\bin\date.exe +%%Y-%%m-%%d') DO SET "RELEASE_DATE=%%i"
|
||||
)
|
||||
|
||||
build_script:
|
||||
@ -49,11 +54,25 @@ build_script:
|
||||
- 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 ..
|
||||
cd bin && 7z a -tzip -mx9 brotli-win-%ARCH%-%RELEASE_DATE%.zip brotli.exe &&
|
||||
appveyor PushArtifact brotli-win-%ARCH%-%RELEASE_DATE%.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%"=="make" ( sh -c "make test" )
|
||||
|
||||
deploy:
|
||||
- provider: BinTray
|
||||
on:
|
||||
branch: master
|
||||
username: eustas
|
||||
api_key:
|
||||
secure: B3rM8JYeIHIw6BfOjHggAeyTmxEf8ZDYmyF9gCwqyWaxyxECD9BuN50SiV2KE/RI
|
||||
subject: eustas
|
||||
repo: brotli
|
||||
package: bin
|
||||
version: snapshot
|
||||
publish: true
|
||||
override: true
|
||||
|
Loading…
Reference in New Issue
Block a user