forked from MockBukkit/MockBukkit
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
39 lines (38 loc) · 1.39 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
language: java
jdk: openjdk8
install: ./gradlew eclipse
env:
global:
CC_TEST_REPORTER_ID=777b516861c088512f43a433d2058efdd600446fac3f39bc863d87177324585c
JACOCO_SOURCE_PATH=src/main/java
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
- sudo apt-get -y install python-sphinx
script:
- ./gradlew check
- ./gradlew jacocoTestReport
- ./gradlew jar
- ./gradlew javadoc
- cd docs
- make SPHINXOPTS=-W html linkcheck
- cd ..
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
after_script:
- rm -f .travis/private.gpg
- ./cc-test-reporter format-coverage -t jacoco build/reports/jacoco/test/jacocoTestReport.xml
- ./cc-test-reporter upload-coverage
- rm cc-test-reporter
deploy:
skip_cleanup: true
provider: script
script: gpg --batch --passphrase $KEY_PASSPHRASE -d -o $PWD/.travis/private.gpg $PWD/.travis/secring.gpg && ./gradlew publishMockBukkitPublicationToRepositoryRepository -PossrhUsername=$OSSRH_USERNAME -PossrhPassword=$OSSRH_PASSWORD -Psigning.secretKeyRingFile=$PWD/.travis/private.gpg -Psigning.keyId=$KEY_ID -Psigning.password=$KEY_PASSPHRASE
on:
branch: v1.16