CI config

* Appveyor: publish artifacts on bintray
* Appveyor & Travis: build only master branch
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 @@
 - 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 @@
 - 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