forked from checkstyle/checkstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.cirrus.yml
More file actions
80 lines (79 loc) · 2.5 KB
/
.cirrus.yml
File metadata and controls
80 lines (79 loc) · 2.5 KB
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
only_if: |
(
$CIRRUS_BRANCH == $CIRRUS_DEFAULT_BRANCH ||
$CIRRUS_BRANCH !=~ 'pull/.*'
) &&
changesInclude(
'src/**',
'config/**',
'pom.xml',
'.ci/**'
)
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
- set "JAVA_HOME=%ProgramFiles%\%TEMURIN_PATH%"
- set "PATH=%JAVA_HOME%\bin;%PATH%"
- 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
include:
- .mvn/wrapper
matrix:
# add more JDK versions here
- name: Cirrus - JDK21
env:
TEMURIN_VERSION: "21.0.6.7"
TEMURIN_PATH: 'Eclipse Adoptium\jdk-%TEMURIN_VERSION%-hotspot'
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"
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 temurin --version %TEMURIN_VERSION%
- refreshenv
- set "JAVA_HOME=%ProgramFiles%\%TEMURIN_PATH%"
- set "PATH=%JAVA_HOME%\bin;%PATH%"
- java -version
- javac -version
version_script:
- set "JAVA_HOME=%ProgramFiles%\%TEMURIN_PATH%"
- set "PATH=%JAVA_HOME%\bin;%PATH%"
- set
- ant -version
- java --version
# - xsltproc --version
# - xml --version
sevntu_script:
- set "JAVA_HOME=%ProgramFiles%\%TEMURIN_PATH%"
- set "PATH=%JAVA_HOME%\bin;%PATH%"
- cd ci
- .ci/validation.cmd sevntu
verify_without_checkstyle_script:
- set "JAVA_HOME=%ProgramFiles%\%TEMURIN_PATH%"
- set "PATH=%JAVA_HOME%\bin;%PATH%"
- cd ci
- .ci/validation.cmd verify_without_checkstyle
site_without_verify_script:
- set "JAVA_HOME=%ProgramFiles%\%TEMURIN_PATH%"
- set "PATH=%JAVA_HOME%\bin;%PATH%"
- cd ci
- .ci/validation.cmd site_without_verify