forked from checkstyle/checkstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
83 lines (71 loc) · 2.04 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
version: ~> 1.0
dist: focal
# this arch is required as is for Partner Queue Solution - DO NOT MODIFY
arch: ppc64le
language: java
cache:
directories:
- ~/.m2
addons:
apt:
packages:
- groovy
- xsltproc
- xmlstarlet
branches:
only:
- master
install:
- ./.ci/travis.sh install-adoptium-jdk
- ./.ci/travis.sh install-custom-mvn
jobs:
fast_finish: true
include:
# this job do deploy maven repository
# unit tests (openjdk11)
- jdk: openjdk11
env:
- DESC="tests and deploy"
- CMD="mvn -e --no-transfer-progress clean integration-test failsafe:verify
-DargLine='-Xms1024m -Xmx2048m'"
- DEPLOY="true"
- USE_MAVEN_REPO="true"
# codecov
- jdk: openjdk11
env:
- DESC="codecov"
- USE_MAVEN_REPO="true"
- CMD="./.ci/travis.sh jacoco"
- jdk: openjdk11
env:
- DESC="codenarc analysis"
- CMD="./.ci/codenarc.sh"
# Ensure that all modules are used in no exception configs
- env:
- DESC="ensure that all modules are used in no exception configs"
- CMD1="export PULL_REQUEST=$TRAVIS_PULL_REQUEST"
- CMD2="./.ci/validation.sh verify-no-exception-configs"
- CMD="$CMD1 && $CMD2"
before_script:
- |
if [[ $TRAVIS_CPU_ARCH == 'ppc64le' ]]; then
export JAVA_HOME=/usr/lib/jvm/adoptopenjdk-11-hotspot-ppc64el
export PATH=$JAVA_HOME/bin:$PATH
fi
- groovy --version
script:
# manually set JAVA_HOME to overcome issue with travis ci noted at
# https://github.com/checkstyle/checkstyle/pull/11699#issue-1261272652
# - JAVA_HOME='/usr/lib/jvm/adoptopenjdk-11-hotspot-ppc64el'
- ./.ci/travis.sh init-m2-repo
- ./.ci/travis.sh run-command "$CMD"
# - ./.ci/travis.sh remove-custom-mvn
# - ./.ci/travis.sh remove-adoptium-jdk
- ./.ci/validation.sh git-diff
- ./.ci/travis.sh ci-temp-check
- ./.ci/travis.sh quarterly-cache-cleanup
- sleep 5s
after_success:
- ./.ci/travis.sh run-command-after-success
- ./.ci/travis.sh deploy-snapshot
- sleep 5s