forked from checkstyle/checkstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
153 lines (148 loc) · 5.5 KB
/
appveyor.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
os: Windows Server 2012
version: '{build}'
skip_tags: true
skip_commits:
files:
- .ci/
- .circleci/
- .github/
- .gitattributes
- .gitignore
- .travis.yml
- buddy.yml
- codeship-services.yml
- codeship-steps.yml
- distelli-manifest.yml
- LICENSE
- LICENSE.apache20
- README.md
- release.sh
- RIGHTS.antlr
- shippable.yml
- wercker.yml
- Jenkinsfile
- config/default_sonar_profile.xml
- config/intellij-idea-inspection-scope.xml
- config/intellij-idea-inspections.properties
- config/intellij-idea-inspections.xml
- config/org.eclipse.jdt.core.prefs
- config/version-number-rules.xml
clone_depth: 10
branches:
only:
- master
except:
- gh-pages
init:
- git config --global core.autocrlf true
install:
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\maven\apache-maven-3.2.5" )) {
(new-object System.Net.WebClient).DownloadFile(
'http://www.us.apache.org/dist/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.zip',
'C:\maven-bin.zip'
)
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
}
- cmd: SET M2_HOME=C:\maven\apache-maven-3.2.5
- cmd: SET PATH=%M2_HOME%\bin;%JAVA_HOME%\bin;%PATH%
- cmd: git config --global core.autocrlf
- cmd: mvn --version
- cmd: java -version
cache:
- C:\maven\apache-maven-3.2.5
- C:\Users\appveyor\.m2
matrix:
fast_finish: true
environment:
global:
CMD1: " "
CMD2: " "
CMD3: " "
CMD4: " "
CMD5: " "
CMD6: " "
CMD7: " "
CMD8: " "
CMD9: " "
CMD10: " "
# We do matrix as AppVeyor could fail to finish simple "mvn verify"
# if he loose maven cache (happens from time to time)
matrix:
# checkstyle and sevntu.checkstyle
- JAVA_HOME: C:\Program Files\Java\jdk1.8.0
DESC: "checkstyle and sevntu.checkstyle"
CMD1: "mvn -e verify -DskipTests -DskipITs"
CMD2: " -Dpmd.skip=true -Dspotbugs.skip=true -Djacoco.skip=true -Dxml.skip=true"
# verify without checkstyle (JDK8)
- JAVA_HOME: C:\Program Files\Java\jdk1.8.0
DESC: "verify without checkstyle (JDK8)"
CMD1: "mvn -e verify -Dcheckstyle.ant.skip=true -Dcheckstyle.skip=true"
# verify without checkstyle (JDK9)
- JAVA_HOME: C:\Program Files\Java\jdk9
DESC: "verify without checkstyle (JDK9)"
CMD1: "mvn -e verify -Dcheckstyle.ant.skip=true -Dcheckstyle.skip=true"
# verify without checkstyle (JDK10)
- JAVA_HOME: C:\Program Files\Java\jdk10
DESC: "verify without checkstyle (JDK10)"
CMD1: "mvn -e verify -Dcheckstyle.ant.skip=true -Dcheckstyle.skip=true"
# verify without checkstyle (JDK11)
# Spotbugs check is disabled till https://github.com/spotbugs/spotbugs/issues/259
- JAVA_HOME: C:\Program Files\Java\jdk11
DESC: "verify without checkstyle (JDK11)"
CMD1: "mvn -e verify -Dcheckstyle.ant.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true"
# verify without checkstyle (JDK12)
# Spotbugs check is disabled till https://github.com/spotbugs/spotbugs/issues/259
- JAVA_HOME: C:\Program Files\Java\jdk12
DESC: "verify without checkstyle (JDK12)"
CMD1: "mvn -e verify -Dcheckstyle.ant.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true"
CMD2: " -Dtest=!FileContentsTest#testGetJavadocBefore,!FileTextTest#testFindLine*,"
CMD3: "!MainFrameModelPowerTest#testOpenFileWithUnknownParseMode,"
CMD4: "!TokenUtilTest#testTokenValueIncorrect2,"
CMD5: "!ImportControlLoaderPowerTest#testInputStreamThatFailsOnClose"
CMD6: " -Djacoco.skip=true"
# site, without verify (JDK8)
- JAVA_HOME: C:\Program Files\Java\jdk1.8.0
DESC: "site, without verify (JDK8)"
CMD1: "mvn -e -Pno-validations site"
# site, without verify (JDK9)
- JAVA_HOME: C:\Program Files\Java\jdk9
DESC: "site, without verify (JDK9)"
CMD1: "mvn -e -Pno-validations site"
# site, without verify (JDK10)
- JAVA_HOME: C:\Program Files\Java\jdk10
DESC: "site, without verify (JDK10)"
CMD1: "mvn -e -Pno-validations site"
# site, without verify (JDK11)
- JAVA_HOME: C:\Program Files\Java\jdk11
DESC: "site, without verify (JDK11)"
CMD1: "mvn -e -Pno-validations site"
# site, without verify (JDK12)
- JAVA_HOME: C:\Program Files\Java\jdk12
DESC: "site, without verify (JDK12)"
CMD1: "mvn -e -Pno-validations site"
CMD2: " -Dtest=!FileContentsTest#testGetJavadocBefore,!FileTextTest#testFindLine*,"
CMD3: "!MainFrameModelPowerTest#testOpenFileWithUnknownParseMode,"
CMD4: "!TokenUtilTest#testTokenValueIncorrect2,"
CMD5: "!ImportControlLoaderPowerTest#testInputStreamThatFailsOnClose"
CMD6: " -Djacoco.skip=true"
build_script:
- ps: >
(get-content env:CMD1)
+ (get-content env:CMD2)
+ (get-content env:CMD3)
+ (get-content env:CMD4)
+ (get-content env:CMD5)
+ (get-content env:CMD6)
+ (get-content env:CMD7)
+ (get-content env:CMD8)
+ (get-content env:CMD9)
+ (get-content env:CMD10)
| Out-File appveyor.cmd -encoding ASCII
- ps: get-content appveyor.cmd
# We need to use cmd there as ps1 is failing each time error output appear from any command line
- appveyor.cmd
- ps: echo "Size of caches (bytes):"
- ps: Get-ChildItem -Recurse 'C:\maven\apache-maven-3.2.5' | Measure-Object -Property Length -Sum
- ps: Get-ChildItem -Recurse 'C:\Users\appveyor\.m2' | Measure-Object -Property Length -Sum