Skip to content

Commit

Permalink
Merge pull request #480 from v5analytics/release-2.0-travis
Browse files Browse the repository at this point in the history
configure travis to always build and deploy from release branches
  • Loading branch information
sfeng88 authored Jul 8, 2016
2 parents 558adde + c2e2e5c commit 75f09ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ env:
- CC=clang CXX=clang++
script: mvn -B -fae test -Ptest-exclude-native -DlogQuiet
after_success:
- test $TRAVIS_REPO_SLUG == "v5analytics/visallo" && test $TRAVIS_BRANCH == "master" && test $TRAVIS_PULL_REQUEST == "false" && echo "<settings><servers><server><id>sonatype-nexus-snapshots</id><username>\${env.DEPLOY_USERNAME}</username><password>\${env.DEPLOY_PASSWORD}</password></server></servers></settings>" > ~/settings.xml
- test $TRAVIS_REPO_SLUG == "v5analytics/visallo" && test $TRAVIS_BRANCH == "master" || test 'echo $TRAVIS_BRANCH | grep -Eq /^release-.*$/' && test $TRAVIS_PULL_REQUEST == "false" && echo "<settings><servers><server><id>sonatype-nexus-snapshots</id><username>\${env.DEPLOY_USERNAME}</username><password>\${env.DEPLOY_PASSWORD}</password></server></servers></settings>" > ~/settings.xml
- test -f ~/settings.xml && mvn --settings ~/settings.xml -f root/pom.xml deploy
- test -f ~/settings.xml && mvn --settings ~/settings.xml -DskipTests deploy
branches:
only:
- master
- release-2.0
- /^release-.*$/

0 comments on commit 75f09ac

Please sign in to comment.