aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Kliuchnikov <eustas@google.com>2017-09-18 13:05:47 +0200
committerGitHub <noreply@github.com>2017-09-18 13:05:47 +0200
commit6b1d0ab53da7e2f917b4340676b39c856251f972 (patch)
treece80c8805b79fe5991e005e8d83c14d3036f9715
parent26a34a435cf6389729bdf1eb6ca5d163b02572a8 (diff)
downloadbrotli-6b1d0ab53da7e2f917b4340676b39c856251f972.tar.gz
CI config
* Appveyor: publish artifacts on bintray * Appveyor & Travis: build only master branch
-rw-r--r--.travis.yml3
-rw-r--r--scripts/appveyor.yml25
2 files changed, 25 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 2f26eaa..3cbb379 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,8 @@
language: c
sudo: false
+branches:
+ only:
+ - master
matrix:
include:
###
diff --git a/scripts/appveyor.yml b/scripts/appveyor.yml
index 62e593b..2c98f19 100644
--- a/scripts/appveyor.yml
+++ b/scripts/appveyor.yml
@@ -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