forked from seedstack/distribution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
16 lines (10 loc) · 795 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
sudo: false
language: java
jdk: openjdk11
cache:
directories: "$HOME/.m2/repository"
install:
- echo "<settings><servers><server><id>oss-jfrog-artifactory</id><username>\${env.BINTRAY_USER}</username><password>\${env.BINTRAY_KEY}</password></server><server><id>bintray</id><username>\${env.BINTRAY_USER}</username><password>\${env.BINTRAY_KEY}</password></server></servers></settings>" > ~/.m2/settings.xml
- if [[ $TRAVIS_PULL_REQUEST = false ]] && [[ $TRAVIS_BRANCH = master ]] || [[ $TRAVIS_TAG = v* ]]; then GOAL=deploy; else GOAL=install; fi
- if [[ $TRAVIS_TAG = v* ]]; then ADDITIONAL_PROFILES=release; mvn -q -U org.seedstack:seedstack-maven-plugin:release; else ADDITIONAL_PROFILES=snapshots; fi
script: mvn -q -U -Pbuild-number,bintray,javadoc,$ADDITIONAL_PROFILES $GOAL