加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.cirrus.yml 2.03 KB
一键复制 编辑 原始数据 按行查看 历史
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 - JDK15
env:
OPENJDK_VERSION: "15.0.0"
OPENJDK_PATH: "jdk-15"
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.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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化