-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split javadoc and test build in travis
Speed up build with artifact cache. Only execute deploy if build is executed on behaf of: Repo: whizzosoftware/WZWave Branch: master And it's not a PR And tests are OK
- Loading branch information
Showing
1 changed file
with
23 additions
and
5 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,7 +1,25 @@ | ||
language: java | ||
jdk: | ||
- oraclejdk8 | ||
jdk: oraclejdk8 | ||
cache: | ||
directories: | ||
- $HOME/.m2 | ||
matrix: | ||
include: | ||
- name: "Javadoc" | ||
env: | ||
- TEST_SUITE='javadoc:jar' | ||
- TEST_TAG=javadoc | ||
- name: "Unit tests" | ||
env: | ||
- TEST_SUITE='test jacoco:report coveralls:report' | ||
- TEST_TAG=utest | ||
script: | ||
- mvn $TEST_SUITE -B | ||
after_success: | ||
- echo "<settings><servers><server><id>oss-jfrog-artifactory-snapshots</id><username>\${env.OSSRH_USER}</username><password>\${env.OSSRH_PASS}</password></server></servers></settings>" > ~/settings.xml | ||
- mvn deploy --settings ~/settings.xml | ||
- mvn clean test jacoco:report coveralls:report | ||
- echo $TEST_TAG | ||
- echo $TRAVIS_REPO_SLUG | ||
- echo $TRAVIS_BRANCH | ||
- echo $TRAVIS_PULL_REQUEST | ||
- echo $TRAVIS_TEST_RESULT | ||
- test $TEST_TAG = utest && test $TRAVIS_REPO_SLUG = whizzosoftware/WZWave && test $TRAVIS_BRANCH = master && test $TRAVIS_PULL_REQUEST = false && test $TRAVIS_TEST_RESULT = 0 && echo "<settings><servers><server><id>oss-jfrog-artifactory-snapshots</id><username>\${env.OSSRH_USER}</username><password>\${env.OSSRH_PASS}</password></server></servers></settings>" > ~/settings.xml | ||
- test $TEST_TAG = utest && test $TRAVIS_REPO_SLUG = whizzosoftware/WZWave && test $TRAVIS_BRANCH = master && test $TRAVIS_PULL_REQUEST = false && test $TRAVIS_TEST_RESULT = 0 && mvn deploy --settings ~/settings.xml |