Skip to content

Commit

Permalink
update submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Oct 4, 2019
1 parent a91fbcd commit 825fffa
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 @@ -28,12 +28,12 @@ install:
script:
- if [[ $TRAVIS_BRANCH == "master" ]]; then mvn clean deploy --settings default.xml -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -DskipTests=true -B -Prelease; fi

## Get the project version
## Get the project version, only tag if tag does not exist
before_deploy:
- export CURRENT_VERSION=$(mvn help:evaluate -q -DforceStdout -Dexpression=project.version)
- echo CURRENT_VERSION=$CURRENT_VERSION
- export TRAVIS_TAG=$CURRENT_VERSION
- if [[ $TRAVIS_BRANCH == "master" ]]; then git tag $TRAVIS_TAG; fi
- if [[ $TRAVIS_BRANCH == "master" ]] && [[ -z $(git tag -l "$CURRENT_VERSION") ]]; then git tag $TRAVIS_TAG; fi

## Create release in GitHub
deploy:
Expand Down

0 comments on commit 825fffa

Please sign in to comment.