forked from checkstyle/checkstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
59 lines (59 loc) · 2.02 KB
/
.cirrus.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
task:
name: Windows build
windows_container:
image: cirrusci/windowsservercore:2019
clone_script:
- git config core.autocrlf
- git clone --recursive
https://x-access-token:%CIRRUS_REPO_CLONE_TOKEN%@github.com/%CIRRUS_REPO_FULL_NAME%.git
%CIRRUS_WORKING_DIR%/ci
- cd ci
- cmd /c "if defined CIRRUS_PR (git fetch origin pull/%CIRRUS_PR%/head:pull/%CIRRUS_PR%)"
- git reset --hard %CIRRUS_CHANGE_IN_REPO%
choco_cache:
# should be under %CIRRUS_WORKING_DIR%
folder: .chocolatey
maven_cache:
# should be under %CIRRUS_WORKING_DIR%
folder: .m2
matrix:
# add more JDK versions here
- name: Cirrus - JDK16
env:
OPENJDK_VERSION: "16.0.0"
OPENJDK_PATH: "jdk-16"
env:
# disable ANSI output for picocli (may affect tests)
NO_COLOR: "1"
# https://stackoverflow.com/questions/42024619/maven-build-gets-connection-reset-when-downloading-artifacts
MAVEN_OPTS: "-Dhttp.keepAlive=false \
-Dmaven.repo.local=%CIRRUS_WORKING_DIR%/.m2 \
-Dmaven.wagon.http.retryHandler.count=3"
MAVEN_VERSION: "3.8.1"
PATH: "%PATH%;C:/Program Files/OpenJDK/%OPENJDK_PATH%/bin;\
C:/ProgramData/chocolatey/lib/maven/apache-maven-%MAVEN_VERSION%/bin;\
C:/ProgramData/chocolatey/bin"
install_script:
- choco config set cacheLocation %CIRRUS_WORKING_DIR%/.chocolatey
- choco upgrade -y chocolatey
- choco install -y --no-progress ant
- choco install -y --no-progress maven --version %MAVEN_VERSION%
- choco install -y --no-progress openjdk --version %OPENJDK_VERSION%
- choco install -y --no-progress xsltproc
- choco install -y --no-progress xmlstarlet
version_script:
- set
- ant -version
- java --version
- mvn --version
- xsltproc --version
- xml --version
sevntu_script:
- cd ci
- .ci/validation.cmd sevntu
verify_without_checkstyle_script:
- cd ci
- .ci/validation.cmd verify_without_checkstyle
site_without_verify_script:
- cd ci
- .ci/validation.cmd site_without_verify