-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
23 lines (16 loc) · 1.02 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
sudo: true
language: java
jdk: openjdk11
cache:
directories:
- "$HOME/.m2/repository"
before_install:
- gpg --fast-import gpg.asc
- curl -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.4.3/elasticsearch-2.4.3.deb && sudo dpkg -i --force-confnew elasticsearch-2.4.3.deb && sudo service elasticsearch start
- sleep 5
install:
- echo "<settings><servers><server><id>ossrh</id><username>\${env.SONATYPE_USER}</username><password>\${env.SONATYPE_PASSWORD}</password></server></servers></settings>" > ~/.m2/settings.xml
- if [[ $TRAVIS_PULL_REQUEST = false ]] && [[ $TRAVIS_BRANCH = master || $TRAVIS_BRANCH = dev-* ]] || [[ $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; fi
script: mvn -U -Pbuild-number,compatibility,javadoc,v2,$ADDITIONAL_PROFILES $GOAL jacoco:report
after_success: mvn -q coveralls:report -DrepoToken=$COVERALLS_TOKEN