forked from fabric8io/fabric8-maven-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
21 lines (21 loc) · 1004 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# We use Travis for the following tasks:
# - Updating the Sonarqube stats when not on a PR
# - Update Codecov (codecov.io) stats for every build
# - Regenerate the docs when commit on master (but not for a PR)
language: java
jdk:
- oraclejdk8
script:
# Profile jacoco switches on jacoco coverages
- mvn test -B -Pjacoco
# Only build docs when commited on master and not a pull request.
# See https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
# for more details about Travis default vars
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then sh doc/ci-docs.sh; else true; fi
after_success:
# Update codecov site. See https://codecov.io/gh/fabric8io/fabric8-maven-plugin
# Also look into .codecov.yml for configuraton of codecov
- bash <(curl -s https://codecov.io/bash)
after_script:
# Update our sonar installation at https://sonarqube.com/dashboard?id=io.fabric8%3Afabric8-maven-plugin-build
- bash doc/sonarqube.sh