-
Notifications
You must be signed in to change notification settings - Fork 131
/
appveyor.yml
107 lines (101 loc) · 4.04 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
os: Visual Studio 2019
version: '{build}'
skip_tags: true
clone_depth: 10
branches:
only:
- master
except:
- gh-pages
install:
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\maven\apache-maven-3.8.8" )) {
(new-object System.Net.WebClient).DownloadFile(
'https://downloads.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.zip',
'C:\maven-bin.zip'
)
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
}
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\groovy\groovy-2.4.8" )) {
(new-object System.Net.WebClient).DownloadFile(
'https://groovy.jfrog.io/ui/api/v1/download?repoKey=dist-release-local&path=groovy-zips%252Fapache-groovy-binary-2.4.8.zip',
'C:\groovy-bin.zip'
)
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\groovy-bin.zip", "C:\groovy")
}
- cmd: SET M2_HOME=C:\maven\apache-maven-3.8.8
- cmd: SET GROOVY_HOME=C:\groovy\groovy-2.4.8
- cmd: SET PATH=%GROOVY_HOME%\bin;%JAVA_HOME%\bin;%M2_HOME%\bin;%PATH%
- cmd: git config --global core.autocrlf
- cmd: mvn --version
- cmd: java -version
- cmd: groovy -version
cache:
- C:\maven\apache-maven-3.8.8
- C:\groovy\groovy-2.4.8
- 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\jdk11
DESC: "releasenotes-builder"
CMD1: "cd releasenotes-builder && mvn clean verify && mvn clean compile package"
# verify without checkstyle
- JAVA_HOME: C:\Program Files\Java\jdk11
DESC: "patch-diff-report-tool"
CMD1: "cd patch-diff-report-tool && mvn clean install"
# checkstyle-tester
- JAVA_HOME: C:\Program Files\Java\jdk11
DESC: "checkstyle-tester (diff.groovy) on guava"
CMD1: " git clone -q --depth=10 --branch=master "
CMD2: " https://github.com/checkstyle/checkstyle C:\\projects\\contribution\\checkstyle "
CMD3: " && cd checkstyle && git checkout -b patch-branch"
CMD4: " "
CMD5: " && cd ..\\checkstyle-tester "
CMD6: " && groovy diff.groovy -l projects-to-test-on.properties -c my_check.xml -b master -p patch-branch -r C:\\projects\\contribution\\checkstyle -s"
- JAVA_HOME: C:\Program Files\Java\jdk11
DESC: "checkstyle-tester (diff.groovy with base and patch configs) on guava"
CMD1: " git clone -q --depth=10 --branch=master "
CMD2: " https://github.com/checkstyle/checkstyle C:\\projects\\contribution\\checkstyle "
CMD3: " && cd checkstyle && git checkout -b patch-branch"
CMD4: " "
CMD5: " && cd ..\\checkstyle-tester "
CMD6: " && groovy diff.groovy -l projects-to-test-on.properties -bc my_check.xml -pc my_check.xml -b master -p patch-branch -r C:\\projects\\contribution\\checkstyle -s -h"
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.8.8' | Measure-Object -Property Length -Sum
- ps: Get-ChildItem -Recurse 'C:\groovy\groovy-2.4.8' | Measure-Object -Property Length -Sum
- ps: Get-ChildItem -Recurse 'C:\Users\appveyor\.m2' | Measure-Object -Property Length -Sum