forked from junit-team/junit5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
72 lines (61 loc) · 2.11 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
language: java
# Specify which branches/tags that we do not want to be built: r5.0.0-M5
branches:
except:
- /^r\d.*$/
# Remove lock files before caching
before_cache:
- rm -f $HOME/.gradle/caches/*/*.lock
# Cache only relevant directories
cache:
directories:
- $HOME/.gradle/caches/jars-3
- $HOME/.gradle/caches/modules-2
- $HOME/.gradle/wrapper/dists
before_install:
# https://github.com/travis-ci/travis-ci/issues/8408
# Also interferes with platform-tooling-support-tests expectations
- unset _JAVA_OPTIONS
install:
- ./gradlew --version # Display Gradle, Groovy, JVM and other versions
jdk:
- openjdk11
- openjdk-ea
os:
- linux
- osx
matrix:
exclude:
- os: osx
jdk: openjdk-ea
allow_failures:
- jdk: openjdk-ea
script:
- ./gradlew --scan --warning-mode=all -Dplatform.tooling.support.tests.enabled=true build
stages:
- test
- name: deploy
if: (branch = master) AND (NOT type IN (pull_request))
jobs:
include:
- name: "Coverage"
script:
- ./gradlew --scan --stacktrace --warning-mode=all -PenableJaCoCo build jacocoRootReport
- bash <(curl -s https://codecov.io/bash)
- stage: deploy
name: "Publish snapshot artifacts"
env:
# ORG_GRADLE_PROJECT_ossrhUsername
- secure: KB6nXD6SU+g7jNB+JnmOy9aOx21tazy+j2SbFj6UTayfEWfD3E7nw8AxQLRy9XWVaUQZGk+F8UWvHMX/5qhfqS3eXsdqGY3BaDM6QB8O3kMIZjO2I1JxmLoEBXqzWPFo0qfdexm78FhU3LCqzwofl4eCkwCErjF0483MfUOe54Q=
# ORG_GRADLE_PROJECT_ossrhPassword
- secure: haIyH2wZSfmnH/oKJ0J1pMBl1wsYMhc26iOPunaMELKUgPCBC4+y5qYJBcG3/G9gy3qYYi3GdFLvHVkqxlAABTC5lcNyBqsU20SzKD6HNyf4rv7Dtv+x1GjI7Yz50zAaJyPnoQBdboMdevPTfczcCAf6mRvA5nmEZc1D1fbbGA8=
script: ./gradlew --scan publish -x check
- name: "Update snapshot documentation"
addons:
apt:
packages:
- graphviz
env:
# GRGIT_USER
- secure: PwwKcsVdukfzvDBHmdajhMsIVHSbPt+lorgibpRXImBt+C4XHlaz/Z78Bq8jtkDvrXb+DTSfSGvAxg1IBM+rtCzrYb5DAqq+OfuG9Uu6FDTnkIOHs5Gii7pAfT0+W31Oj76OgiCAXX+p8lbFTchz6ope5zVYEpSlAe7aXCVTGM0=
script: ./src/publishDocumentationSnapshotOnlyIfNecessary.sh