-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.travis.yml
More file actions
29 lines (27 loc) · 795 Bytes
/
.travis.yml
File metadata and controls
29 lines (27 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
language: java
sudo: false
cache:
directories:
- "$HOME/.m2"
jobs:
include:
- stage: build'n'report
jdk: openjdk8
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script: mvn clean install
after_script:
- cp target/site/jacoco/jacoco.xml src/main/java/
- cd src/main/java/
- ../../../cc-test-reporter after-build --coverage-input-type jacoco --exit-code $TRAVIS_TEST_RESULT
after_success:
- bash <(curl -s https://codecov.io/bash)
- stage: deploy
jdk: openjdk8
script:
- mvn deploy --settings settings.xml
branches:
except:
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/