Skip to content

Commit

Permalink
Tagging commit and ignoring the build that the tagged release would o…
Browse files Browse the repository at this point in the history
…therwise trigger
  • Loading branch information
rdbatch committed Jul 13, 2018
1 parent a83dcd6 commit 838feb0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@ sudo: false
cache:
directories:
- "$HOME/.m2"
branches:
except:
- /^v[0-9]/
before_install:
- export TZ=America/New_York
- date
- export BUILD_VERSION="1.0.$TRAVIS_BUILD_NUMBER"
- mvn org.codehaus.mojo:versions-maven-plugin:2.2:set -DnewVersion=$BUILD_VERSION

after_script:
before_deploy:
- ls target
- git tag $BUILD_VERSION
- git tag "v$BUILD_VERSION"

notifications:
email: false
Expand All @@ -24,4 +27,4 @@ deploy:
skip_cleanup: true
on:
repo: libertymutual/herman
tags: true
branch: master

0 comments on commit 838feb0

Please sign in to comment.