-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maximilian Kuehn
authored and
Maximilian Kuehn
committed
Jul 3, 2020
1 parent
cdf1949
commit 4063239
Showing
3 changed files
with
11 additions
and
23 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 |
---|---|---|
@@ -1,25 +1,21 @@ | ||
os: linux | ||
dist: xenial | ||
language: java | ||
jdk: | ||
- openjdk8 | ||
cache: | ||
directories: | ||
- $HOME/.m2 | ||
before_install: | ||
- if [ ! -z "$GPG_SECRET_KEYS" ]; then echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import; fi | ||
- if [ ! -z "$GPG_OWNERTRUST" ]; then echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust; fi | ||
install: "mvn install -DskipTests=true" | ||
script: "mvn -e clean test jacoco:report coveralls:report" | ||
script: "mvn -e -B verify" | ||
after_success: "mvn clean verify jacoco:report coveralls:report" | ||
deploy: | ||
- | ||
provider: script | ||
- provider: script | ||
script: .travis/deploy.sh | ||
skip_cleanup: true | ||
on: | ||
repo: Mercateo/rest-schemagen | ||
branch: master | ||
jdk: openjdk8 | ||
- | ||
provider: script | ||
script: .travis/deploy.sh | ||
skip_cleanup: true | ||
on: | ||
repo: Mercateo/rest-schemagen | ||
tags: true | ||
jdk: openjdk8 | ||
|
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 |
---|---|---|
@@ -1,9 +1 @@ | ||
if [ ! -z "$TRAVIS_TAG" ] | ||
then | ||
echo "on a tag -> set pom.xml <version> to $TRAVIS_TAG" | ||
mvn --settings .travis/settings.xml org.codehaus.mojo:versions-maven-plugin:2.1:set -DnewVersion=$TRAVIS_TAG 1>/dev/null 2>/dev/null | ||
else | ||
echo "not on a tag -> keep snapshot version in pom.xml" | ||
fi | ||
|
||
mvn clean deploy --settings .travis/settings.xml -DskipTests=true -B -U | ||
mvn deploy --settings .travis/settings.xml -DskipTests=true -B |
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