Skip to content

Commit

Permalink
Fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilian Kuehn authored and Maximilian Kuehn committed Jul 3, 2020
1 parent cdf1949 commit 4063239
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 23 deletions.
22 changes: 9 additions & 13 deletions .travis.yml
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

10 changes: 1 addition & 9 deletions .travis/deploy.sh
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
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</parent>
<artifactId>common.rest.schemagen</artifactId>
<groupId>com.mercateo</groupId>
<version>0.18.16-SNAPSHOT</version>
<version>0.19.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>rest-schemagen</name>
<description>Jersey add-on for dynamic link and schema building</description>
Expand Down

0 comments on commit 4063239

Please sign in to comment.