forked from checkstyle/checkstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
94 lines (80 loc) · 2.43 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
89
90
91
92
93
94
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
- ~/.ivy2
branches:
only:
- master
before_install:
- sudo apt update
install:
- sudo apt install -y groovy xsltproc xmlstarlet ant
- ./.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"
# sevntu (openjdk11)
- jdk: openjdk11
env:
- DESC="sevntu"
- CMD="mvn -e --no-transfer-progress compile antrun:run@ant-phase-verify-sevntu -Psevntu"
- 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"
- jdk: openjdk11
env:
- DESC="no-exception-samples-ant"
- CMD="./.ci/no-exception-test.sh no-exception-samples-ant"
# 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