Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Added automatic tagging to build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Zartec committed Mar 3, 2016
1 parent e648477 commit 5f5237e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,21 @@ jdk:
- oraclejdk7
- oraclejdk8
branches:
only:
- master
except:
- /^v[0-9]*/
notifications:
email: false
install:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dbuild.number=$TRAVIS_BUILD_NUMBER -B -V
after_success:
# CREATE GIT TAG
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- export GIT_TAG=v$TRAVIS_BUILD_NUMBER
- echo -n $GIT_TAG > VERSION
- git commit -m "Set build VERSION number" VERSION
- git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
- git push --quiet https://[email protected]/dev-confidence/example-backend-api $GIT_TAG > /dev/null 2>&1
deploy:
provider: releases
skip_cleanup: true
Expand Down

0 comments on commit 5f5237e

Please sign in to comment.