forked from junit-team/junit5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (57 loc) · 2 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
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/modules-2
- $HOME/.gradle/wrapper/dists
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: repo = junit-team/junit5 AND (branch = master OR branch =~ /^releases\/\d+\.\d+\.x$/) AND type = push
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_nexusUsername
- secure: X7cGNpY3N5NcR42xlFlpETIcaXKi1rwlLWxhC+TesvZ88OOdnU/B5pwKib64r17uf8WXJpuZTIq+RH5drd5bxQkakMrXiNvKtRVUECEMl7JWF6ZVEJzFBKcmdN98p6gv8UTTBx1VHx8E6mBe/WbFCFdM6TMzz1jp7J87dXyoiac=
# ORG_GRADLE_PROJECT_nexusPassword
- secure: KMyXza/904SRPsHEO4vvS8vEA1dOeXJXgxROIJ2e5Gy2rMxFwn6x43YZiwi8eiSXoL+u7T6TQJbQpCGVTCiUXfJGb2aTu8yRK12MDzjWHnyE4tfYy1aNdB75TnlY/YrThDmjTDVMEfPZf3oLlB7zsrk5t9PfgHUEiPJ4Rsz1g04=
script: ./gradlew --scan publish -x check
- name: "Update snapshot documentation"
if: branch = master
addons:
apt:
packages:
- graphviz
env:
# GRGIT_USER
- secure: PwwKcsVdukfzvDBHmdajhMsIVHSbPt+lorgibpRXImBt+C4XHlaz/Z78Bq8jtkDvrXb+DTSfSGvAxg1IBM+rtCzrYb5DAqq+OfuG9Uu6FDTnkIOHs5Gii7pAfT0+W31Oj76OgiCAXX+p8lbFTchz6ope5zVYEpSlAe7aXCVTGM0=
script: ./src/publishDocumentationSnapshotOnlyIfNecessary.sh