forked from checkstyle/checkstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (53 loc) · 1.53 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
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"
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/validation.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