forked from pnu-004-team4/team04
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (22 loc) · 832 Bytes
/
.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
24
25
26
language: java
jdk:
- openjdk8
branches:
only:
- master
# Travis CI 서버의 Cache 활성화
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.gradle'
before_install:
- sudo apt-get install jq
- LATEST_VERSION="$(curl -Ls https://api.bintray.com/packages/codacy/Binaries/codacy-coverage-reporter/versions/_latest | jq -r .name)"
- curl -Ls -o codacy-coverage-reporter "https://dl.bintray.com/codacy/Binaries/${LATEST_VERSION}/codacy-coverage-reporter-linux"
- chmod +x codacy-coverage-reporter
after_success:
- export CODACY_PROJECT_TOKEN="cee8d134eaed4564adfc5b0cfa0fdc65"
- ./gradlew jacocoTestReport
- ./codacy-coverage-reporter report -l Java -r build/reports/jacoco/test/jacocoTestReport.xml
# clean 후 Build (Build시 자동으로 test 수행)
script: "./gradlew clean build test"