forked from checkstyle/checkstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
141 lines (122 loc) · 4.36 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
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:
- xsltproc
- xmlstarlet
branches:
only:
- master
install:
- ./.ci/travis.sh install-adoptium-jdk
- ./.ci/travis.sh install-custom-mvn
- sudo apt install shellcheck
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"
# until https://github.com/checkstyle/checkstyle/issues/9984
# 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"
- jdk: openjdk11
env:
- DESC="NoErrorTest - Postgresql JDBC Driver"
- CMD1="mvn -e --no-transfer-progress clean install -Pno-validations"
- CMD2="./.ci/validation.sh no-error-pgjdbc"
- CMD="$CMD1 && $CMD2"
- USE_MAVEN_REPO="true"
- jdk: openjdk11
env:
- DESC="NoErrorTest - Orekit"
- CMD1="mvn -e --no-transfer-progress clean install -Pno-validations"
- CMD2="./.ci/validation.sh no-error-orekit"
- CMD="$CMD1 && $CMD2"
- USE_MAVEN_REPO="true"
- env:
- DESC="NoErrorTest - Hibernate Search"
- CUSTOM_ADOPTIUM_JDK="temurin-17-jdk"
- CUSTOM_MVN_VERSION="3.8.4"
- M2_HOME="$PWD/apache-maven-${CUSTOM_MVN_VERSION}"
- PATH="$M2_HOME/bin:$PATH"
- CMD1="mvn -e --no-transfer-progress clean install -Pno-validations"
- CMD2="./.ci/validation.sh no-error-hibernate-search"
- CMD="$CMD1 && $CMD2"
- USE_MAVEN_REPO="true"
- env:
- DESC="Shellcheck"
- CMD="shellcheck ./.ci/*.sh && shellcheck release.sh"
- USE_MAVEN_REPO="false"
- jdk: openjdk11
env:
- DESC="NoErrorTest - checkstyle's sevntu"
- CMD1="mvn -e --no-transfer-progress clean install -Pno-validations"
- CMD2="./.ci/validation.sh no-error-checkstyles-sevntu"
- CMD="$CMD1 && $CMD2"
- USE_MAVEN_REPO="true"
- jdk: openjdk11
env:
- DESC="NoErrorTest - sevntu-checks"
- CMD1="mvn -e --no-transfer-progress clean install -Pno-validations"
- CMD2="./.ci/validation.sh no-error-sevntu-checks"
- CMD="$CMD1 && $CMD2"
- USE_MAVEN_REPO="true"
- jdk: openjdk11
env:
- DESC="NoErrorTest - contribution"
- CMD1="mvn -e --no-transfer-progress clean install -Pno-validations"
- CMD2="./.ci/validation.sh no-error-contribution"
- CMD="$CMD1 && $CMD2"
- USE_MAVEN_REPO="true"
- jdk: openjdk11
env:
- DESC="NoErrorTest - methods distance"
- CMD1="mvn -e --no-transfer-progress clean install -Pno-validations"
- CMD2="./.ci/validation.sh no-error-methods-distance"
- CMD="$CMD1 && $CMD2"
- USE_MAVEN_REPO="true"
- jdk: openjdk11
env:
- DESC="NoErrorTest - Spring Cloud GCP"
- CMD1="mvn -e --no-transfer-progress clean install -Pno-validations"
- CMD2="./.ci/validation.sh no-error-spring-cloud-gcp"
- CMD="$CMD1 && $CMD2"
- USE_MAVEN_REPO="true"
- jdk: openjdk11
env:
- DESC="NoErrorTest - EqualsVerifier"
- CMD1="mvn -e --no-transfer-progress clean install -Pno-validations"
- CMD2="./.ci/validation.sh no-error-equalsverifier"
- CMD="$CMD1 && $CMD2"
- USE_MAVEN_REPO="true"
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
after_success:
- ./.ci/travis.sh run-command-after-success
- ./.ci/travis.sh deploy-snapshot