forked from http4k/http4k
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (50 loc) · 1.7 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
39
40
41
42
43
44
45
46
47
48
49
50
dist: xenial
#https://docs.travis-ci.com/user/languages/java/#Caching
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/
matrix:
include:
- stage: build
language: java
jdk: openjdk11
script:
- "./gradlew -i check jacocoRootReport"
after_success:
- bash <(curl -s https://codecov.io/bash)
cache:
directories:
- "$HOME/.m2"
- "$HOME/.gradle"
- stage: bintray
if: branch = master
language: java
jdk: openjdk11
script: 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./release-ci.sh; fi'
- stage: docs
if: branch = master
language: python
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./release-site.sh; fi'
- stage: api
if: branch = master
language: java
jdk: openjdk11
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./release-api.sh; fi'
- stage: maven central 1
if: branch = master
script: 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then travis_wait 90 ./release-maven-central-1.sh; fi'
- stage: maven central 2
if: branch = master
script: 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then travis_wait 90 ./release-maven-central-2.sh; fi'
- stage: maven central 3
if: branch = master
script: 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then travis_wait 90 ./release-maven-central-3.sh; fi'
- stage: maven central 4
if: branch = master
script: 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then travis_wait 90 ./release-maven-central-4.sh; fi'