forked from checkstyle/checkstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
236 lines (224 loc) · 12.4 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
language: java
sudo: false
install:
-
matrix:
fast_finish: true
include:
# unit tests (oraclejdk8)
- jdk: oraclejdk8
env: DESC="tests" CMD="mvn clean integration-test failsafe:verify" COVERAGE_CMD=""
# unit tests in German locale (oraclejdk8)
- jdk: oraclejdk8
env: DESC="tests" CMD="mvn clean integration-test failsafe:verify -DargLine='-Duser.language=de -Duser.country=DE'" COVERAGE_CMD=""
# checkstyle (oraclejdk8)
- jdk: oraclejdk8
env:
- DESC="checkstyle"
- CMD="mvn clean verify -DskipTests -DskipITs -Dpmd.skip=true -Dfindbugs.skip=true -Dcobertura.skip=true"
- COVERAGE_CMD=""
# cobertura and codecov (oraclejdk8)
- jdk: oraclejdk8
env:
- DESC="cobertura and codecov"
- CMD="mvn clean compile cobertura:check cobertura:cobertura"
- COVERAGE_CMD="bash <(curl -s https://codecov.io/bash)"
# findbugs and pmd (oraclejdk8)
- jdk: oraclejdk8
env:
- DESC="findbugs and pmd"
- CMD="mvn clean compile pmd:check findbugs:check"
- COVERAGE_CMD=""
# site (oraclejdk8 as 'site' success is required to be sure that on release time all will be ok, admins will use oracle8 version)
- jdk: oraclejdk8
env:
- DESC="site"
- CMD1="mvn clean site -Dlinkcheck.skip=true -DskipTests -DskipITs "
- CMD2=" -Dpmd.skip=true -Dfindbugs.skip=true -Dcobertura.skip=true -Dcheckstyle.ant.skip=true"
- CMD=$CMD1$CMD2
- COVERAGE_CMD=""
# assembly (oraclejdk8)
- jdk: oraclejdk8
env:
- DESC="assembly"
- CMD1="mvn clean install -Passembly -DskipTests -DskipITs -Dcobertura.skip=true"
- CMD2=" -Dpmd.skip=true -Dfindbugs.skip=true -Dcheckstyle.ant.skip=true"
- CMD=$CMD1$CMD2
- COVERAGE_CMD=""
# nemo.sonarqube.com (oraclejdk7)
- jdk: oraclejdk7
env:
- DESC="nemo.sonarqube.com"
- CMD1="mvn clean install cobertura:cobertura -Dcobertura.report.format=xml "
- CMD2=" -Dmaven.test.failure.ignore=true -V -Dcheckstyle.skip=true "
- CMD3=" -Dpmd.skip=true -Dcheckstyle.ant.skip=true"
- CMD=$CMD1$CMD2$CMD3
- COVERAGE_CMD=""
# NoErrorTest - Orekit (oraclejdk8)
- jdk: oraclejdk8
env:
- DESC="NoErrorTest - Orekit"
- CMD1="git clone https://github.com/checkstyle/Orekit.git && cd Orekit "
- CMD2=" && sed -i 's/<orekit\.checkstyle\.version>6\.6</<orekit.checkstyle.version>6.12-SNAPSHOT</' pom.xml "
- CMD3=" && cd .. && mvn clean install -Passembly -DskipTests -DskipITs -Dcobertura.skip=true "
- CMD4=" -Dpmd.skip=true -Dfindbugs.skip=true -Dcheckstyle.ant.skip=true "
- CMD5=" && cd Orekit && mvn compile checkstyle:check"
- CMD=$CMD1$CMD2$CMD3$CMD4$CMD5
- COVERAGE_CMD=""
# NoExceptiontest - Checkstyle, sevntu-checkstyle (oraclejdk8)
- jdk: oraclejdk8
env:
- DESC="NoExceptionTest - Checkstyle, sevntu-checkstyle"
- CMD1="git clone https://github.com/checkstyle/contribution && cd contribution/checkstyle-tester "
- CMD2=" && sed -i 's/^guava/#guava/' projects-for-travis.properties "
- CMD3=" && sed -i 's/#checkstyle/checkstyle/' projects-for-travis.properties "
- CMD4=" && sed -i 's/#sevntu-checkstyle/sevntu-checkstyle/' projects-for-travis.properties "
- CMD5=" && sed -i 's/projects-to-test-on.properties/projects-for-travis.properties/' launch.sh "
- CMD6=" && cd ../../ && mvn clean install -DskipTests -DskipITs -Dcobertura.skip=true "
- CMD7=" -Dpmd.skip=true -Dfindbugs.skip=true -Dcheckstyle.ant.skip=true "
- CMD8=" && cd contribution/checkstyle-tester "
- CMD9=" && ./launch.sh -Dcheckstyle.config.location=checks-nonjavadoc-error.xml"
- CMD=$CMD1$CMD2$CMD3$CMD4$CMD5$CMD6$CMD7$CMD8$CMD9
- COVERAGE_CMD=""
# NoExceptiontest - Guava (oraclejdk8)
- jdk: oraclejdk8
env:
- DESC="NoExceptionTest - Guava"
- CMD1="git clone https://github.com/checkstyle/contribution && cd contribution/checkstyle-tester"
- CMD2=" && sed -i 's/^guava/#guava/' projects-for-travis.properties"
- CMD3=" && sed -i 's/#guava/guava/' projects-for-travis.properties"
- CMD4=" && sed -i 's/projects-to-test-on.properties/projects-for-travis.properties/' launch.sh"
- CMD5=" && cd ../../ && mvn clean install -DskipTests -DskipITs -Dcobertura.skip=true"
- CMD6=" -Dpmd.skip=true -Dfindbugs.skip=true -Dcheckstyle.ant.skip=true "
- CMD7=" && cd contribution/checkstyle-tester "
- CMD8=" && ./launch.sh -Dcheckstyle.config.location=checks-nonjavadoc-error.xml"
- CMD=$CMD1$CMD2$CMD3$CMD4$CMD5$CMD6$CMD7$CMD8
- COVERAGE_CMD=""
# NoExceptionTest - Hibernate ORM (oraclejdk8)
- jdk: oraclejdk8
env:
- DESC="NoExceptionTest - Hibernate ORM"
- CMD1="git clone https://github.com/checkstyle/contribution && cd contribution/checkstyle-tester "
- CMD2="&& sed -i 's/^guava/#guava/' projects-for-travis.properties "
- CMD3="&& sed -i 's/#hibernate-orm/hibernate-orm/' projects-for-travis.properties "
- CMD4="&& sed -i 's/projects-to-test-on.properties/projects-for-travis.properties/' launch.sh "
- CMD5="&& cd ../../ && mvn clean install -DskipTests -DskipITs -Dcobertura.skip=true "
- CMD6=" -Dpmd.skip=true -Dfindbugs.skip=true -Dcheckstyle.ant.skip=true "
- CMD7="&& cd contribution/checkstyle-tester "
- CMD8="&& ./launch.sh -Dcheckstyle.config.location=checks-nonjavadoc-error.xml"
- CMD=$CMD1$CMD2$CMD3$CMD4$CMD5$CMD6$CMD7$CMD8
- COVERAGE_CMD=""
# NoExceptionTest - FindBugs (oraclejdk8)
- jdk: oraclejdk8
env:
- DESC="NoExceptionTest - FindBugs"
- CMD1="git clone https://github.com/checkstyle/contribution && cd contribution/checkstyle-tester "
- CMD2="&& sed -i 's/^guava/#guava/' projects-for-travis.properties "
- CMD3="&& sed -i 's/#findbugs/findbugs/' projects-for-travis.properties "
- CMD4="&& sed -i 's/projects-to-test-on.properties/projects-for-travis.properties/' launch.sh "
- CMD5="&& cd ../../ && mvn clean install -DskipTests -DskipITs -Dcobertura.skip=true "
- CMD6=" -Dpmd.skip=true -Dfindbugs.skip=true -Dcheckstyle.ant.skip=true "
- CMD7="&& cd contribution/checkstyle-tester "
- CMD8="&& ./launch.sh -Dcheckstyle.config.location=checks-nonjavadoc-error.xml"
- CMD=$CMD1$CMD2$CMD3$CMD4$CMD5$CMD6$CMD7$CMD8
- COVERAGE_CMD=""
# NoExceptionTest - Pmd,elasticsearch,lombok-ast (oraclejdk8)
- jdk: oraclejdk8
env:
- DESC="NoExceptionTest - Pmd,elasticsearch,lombok-ast"
- CMD1="git clone https://github.com/checkstyle/contribution && cd contribution/checkstyle-tester "
- CMD2="&& sed -i 's/^guava/#guava/' projects-for-travis.properties "
- CMD3="&& sed -i 's/#pmd/pmd/' projects-for-travis.properties "
- CMD4="&& sed -i 's/#elasticsearch/elasticsearch/' projects-for-travis.properties "
- CMD5="&& sed -i 's/#lombok-ast/lombok-ast/' projects-for-travis.properties "
- CMD6="&& sed -i 's/projects-to-test-on.properties/projects-for-travis.properties/' launch.sh "
- CMD7="&& cd ../../ && mvn clean install -DskipTests -DskipITs -Dcobertura.skip=true "
- CMD8=" -Dpmd.skip=true -Dfindbugs.skip=true -Dcheckstyle.ant.skip=true "
- CMD9="&& cd contribution/checkstyle-tester "
- CMD10="&& ./launch.sh -Dcheckstyle.config.location=checks-nonjavadoc-error.xml"
- CMD=$CMD1$CMD2$CMD3$CMD4$CMD5$CMD6$CMD7$CMD8$CMD9$CMD10
- COVERAGE_CMD=""
# NoExceptionTest - RxJava,java-design-patterns,MaterialDesignLibrary,apache-ant,apache-jsecurity,android-launcher (oraclejdk8)
- jdk: oraclejdk8
env:
- DESC="NoExceptionTest - RxJava,java-design-patterns,MaterialDesignLibrary,apache-ant,apache-jsecurity,android-launcher"
- CMD01="git clone https://github.com/checkstyle/contribution && cd contribution/checkstyle-tester "
- CMD02="&& sed -i 's/^guava/#guava/' projects-for-travis.properties "
- CMD03="&& sed -i 's/#RxJava/RxJava/' projects-for-travis.properties "
- CMD04="&& sed -i 's/#java-design-patterns/java-design-patterns/' projects-for-travis.properties "
- CMD05="&& sed -i 's/#MaterialDesignLibrary/MaterialDesignLibrary/' projects-for-travis.properties "
- CMD06="&& sed -i 's/#apache-ant/apache-ant/' projects-for-travis.properties "
- CMD07="&& sed -i 's/#apache-jsecurity/apache-jsecurity/' projects-for-travis.properties "
- CMD08="&& sed -i 's/#android-launcher/android-launcher/' projects-for-travis.properties "
- CMD09="&& sed -i 's/projects-to-test-on.properties/projects-for-travis.properties/' launch.sh "
- CMD10="&& cd ../../ && mvn clean install -DskipTests -DskipITs -Dcobertura.skip=true "
- CMD11=" -Dpmd.skip=true -Dfindbugs.skip=true -Dcheckstyle.ant.skip=true "
- CMD12="&& cd contribution/checkstyle-tester "
- CMD13="&& ./launch.sh -Dcheckstyle.config.location=checks-nonjavadoc-error.xml"
- CMD=$CMD01$CMD02$CMD03$CMD04$CMD05$CMD06$CMD07$CMD08$CMD09$CMD10$CMD11$CMD12$CMD13
- COVERAGE_CMD=""
# NoExceptionTest - Spring (oraclejdk8)
- jdk: oraclejdk8
env:
- DESC="NoExceptionTest - Spring"
- CMD1="git clone https://github.com/checkstyle/contribution && cd contribution/checkstyle-tester"
- CMD2=" && sed -i 's/^guava/#guava/' projects-for-travis.properties "
- CMD3=" && sed -i 's/#spring-framework/spring-framework/' projects-for-travis.properties "
- CMD4=" && sed -i 's/projects-to-test-on.properties/projects-for-travis.properties/' launch.sh "
- CMD5=" && cd ../../ && mvn clean install -DskipTests -DskipITs -Dcobertura.skip=true "
- CMD6=" -Dpmd.skip=true -Dfindbugs.skip=true -Dcheckstyle.ant.skip=true "
- CMD7=" && cd contribution/checkstyle-tester "
- CMD8=" && travis_wait ./launch.sh -Dcheckstyle.config.location=checks-nonjavadoc-error.xml"
- CMD=$CMD1$CMD2$CMD3$CMD4$CMD5$CMD6$CMD7$CMD8
- COVERAGE_CMD=""
# NoExceptionTest - Hbase (oraclejdk8)
- jdk: oraclejdk8
env:
- DESC="NoExceptionTest - Hbase"
- CMD1="git clone https://github.com/checkstyle/contribution && cd contribution/checkstyle-tester "
- CMD2="&& sed -i 's/^guava/#guava/' projects-for-travis.properties "
- CMD3="&& sed -i 's/#Hbase/Hbase/' projects-for-travis.properties "
- CMD4="&& sed -i 's/projects-to-test-on.properties/projects-for-travis.properties/' launch.sh "
- CMD5="&& cd ../../ && mvn clean install -DskipTests -DskipITs -Dcobertura.skip=true "
- CMD6=" -Dpmd.skip=true -Dfindbugs.skip=true -Dcheckstyle.ant.skip=true "
- CMD7="&& cd contribution/checkstyle-tester "
- CMD8="&& travis_wait ./launch.sh -Dcheckstyle.config.location=checks-nonjavadoc-error.xml"
- CMD=$CMD1$CMD2$CMD3$CMD4$CMD5$CMD6$CMD7$CMD8
- COVERAGE_CMD=""
# release dry run (oraclejdk8)
- jdk: oraclejdk8
env:
- DESC="release dry run"
- CMD1="mvn release:prepare -DdryRun=true --batch-mode -Darguments='-DskipTests -DskipITs "
- CMD2="-Dcobertura.skip=true -Dpmd.skip=true -Dfindbugs.skip=true "
- CMD3="-Dcheckstyle.ant.skip=true -Dgpg.skip=true'"
- CMD=$CMD1$CMD2$CMD3
- COVERAGE_CMD=""
# unit tests (openjdk7, oraclejdk7)
- jdk: openjdk7
env: DESC="tests" CMD="mvn clean integration-test failsafe:verify" COVERAGE_CMD=""
- jdk: oraclejdk7
env: DESC="tests" CMD="mvn clean integration-test failsafe:verify" COVERAGE_CMD=""
# checkstyle (openjdk7, oraclejdk7)
- jdk: openjdk7
env:
- DESC="checkstyle"
- CMD="mvn clean verify -DskipTests -DskipITs -Dpmd.skip=true -Dfindbugs.skip=true -Dcobertura.skip=true"
- COVERAGE_CMD=""
- jdk: oraclejdk7
env:
- DESC="checkstyle"
- CMD="mvn clean verify -DskipTests -DskipITs -Dpmd.skip=true -Dfindbugs.skip=true -Dcobertura.skip=true"
- COVERAGE_CMD=""
# MacOS verify
- os: osx
env: DESC="MacOS verify" CMD="export JAVA_HOME=$(/usr/libexec/java_home) && mvn clean integration-test failsafe:verify " COVERAGE_CMD=""
script: eval $CMD
after_success:
- eval $COVERAGE_CMD
cache:
directories:
- ~/.m2
branches:
only:
- master