From 60f8633acbc70d40dcf7f406b60f2820b8faff4e Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Thu, 16 Feb 2017 22:25:14 +0300 Subject: [PATCH] Build `preview` branches in Travis. Publish to bintray only from these branches --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index dd9eedfa7..42122dbb5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ branches: only: - master - /^release-.+$/ + - /^preview-.+/ env: - MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m" before_install: @@ -23,7 +24,7 @@ script: > -Dteavm.junit.optimized=true \ -Dteavm.junit.minified=true after_success: > - if [ "${TRAVIS_PULL_REQUEST:-false}" != "false" ]; then + if [ "${TRAVIS_PULL_REQUEST:-false}" != "false" ] && [ $TRAVIS_BRANCH == preview-* ]; then mvn deploy --settings travis-settings.xml -P deploy-to-bintray fi after_script: