forked from checkstyle/checkstyle
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.cirrus.yml
61 lines (61 loc) · 2.17 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
60
61
only_if: $CIRRUS_BRANCH == $CIRRUS_DEFAULT_BRANCH
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 - JDK17
env:
OPENJDK_VERSION: "17.0.0"
OPENJDK_PATH: "jdk-17"
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"
# This Maven version here should be same as minimum defined maven version in pom.xml
MAVEN_VERSION: "3.6.3"
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