This repository has been archived by the owner on Jul 15, 2022. It is now read-only.
forked from SpigotMC/BungeeCord
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added automatic tagging to build script
- Loading branch information
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|