This repository has been archived by the owner on Jun 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
88 lines (78 loc) · 2.16 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
language: java
os: linux
dist: xenial
jdk:
- openjdk11
- openjdk8
- openjdk-ea
# cache disabled since it cause many issues where artifacts are not correctly updated.
#cache:
# directories:
# - $HOME/.m2
install:
- mvn --settings .travis/settings.xml install -DskipTests=true -Dmaven.javadoc.skip=true --batch-mode --update-snapshots --show-version --quiet
script:
- mvn test -Dmaven.javadoc.skip=true --batch-mode --fail-fast # --quiet
before_install:
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust
notifications:
email:
on_success: never
on_failure: never
stages:
- compile
- test
- documentation
- deploy
- trigger
jobs:
allow_failures:
- jdk: openjdk8
- jdk: openjdk-ea
include:
- &compile
stage: compile
script: skip # skip tests
- <<: *compile
jdk: openjdk8
- <<: *compile
jdk: openjdk-ea
- &documentation
stage: documentation
install: skip # skip compile
script: .travis/generate-doc.sh
- <<: *documentation
jdk: openjdk8
- <<: *documentation
jdk: openjdk-ea
- stage: deploy
name: "Central Maven"
install: skip # skip compile
script: skip # skip tests
deploy:
- provider: script
script: .travis/deploy.sh
cleanup: false
on:
repo: ${REPO_ID}
branch: master
- provider: script
script: .travis/deploy.sh
cleanup: false
on:
repo: ${REPO_ID}
tags: true
- stage: trigger
name: "Upstream Projects"
install: skip # skip compile
script: |
echo "TRAVIS_BRANCH=$TRAVIS_BRANCH TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST"
if [[ ($TRAVIS_BRANCH == master) &&
($TRAVIS_PULL_REQUEST == false) ]] ; then
curl -LO --retry 3 https://raw.github.com/mernst/plume-lib/master/bin/trigger-travis.sh
# trigger upstream projects
for PROJECT in ${UPSTREAM_PROJECTS}; do
sh trigger-travis.sh openbase ${PROJECT} $TRAVIS_ACCESS_TOKEN
done
fi