diff --git a/.cirrus.yml b/.cirrus.yml index 6d1c14933..fe84b312d 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -20,18 +20,20 @@ yetus_task: image: apache/yetus:main test_script: > ${CIRRUS_WORKING_DIR}/precommit/src/main/shell/test-patch.sh - --plugins=all - --pylint=pylint2 - --java-home=/usr/lib/jvm/java-8-openjdk-amd64 --basedir="${CIRRUS_WORKING_DIR}" - --html-report-file=/tmp/yetus-out/report.html - --console-report-file=/tmp/yetus-out/console.txt --brief-report-file=/tmp/yetus-out/brief.txt --bugcomments=briefreport,htmlout,junit + --console-report-file=/tmp/yetus-out/console.txt + --html-report-file=/tmp/yetus-out/report.html + --java-home=/usr/lib/jvm/java-8-openjdk-amd64 + --junit-report-xml=/tmp/yetus-out/junit.xml + --plugins=all + --pylint=pylint2 --tests-filter=checkstyle,javadoc,rubocop,test4tests always: junit_artifacts: path: "yetus-out/junit.xml" + type: text/xml format: junit other_artifacts: path: "yetus-out/**" diff --git a/precommit/src/main/shell/robots.d/cirrusci.sh b/precommit/src/main/shell/robots.d/cirrusci.sh index 56de9f96d..cd4b7c09b 100755 --- a/precommit/src/main/shell/robots.d/cirrusci.sh +++ b/precommit/src/main/shell/robots.d/cirrusci.sh @@ -18,6 +18,7 @@ if [[ "${CIRRUS_CI}" == true ]] && declare -f compile_cycle >/dev/null; then + # shellcheck disable=SC2034 ROBOT=true # shellcheck disable=SC2034 @@ -30,7 +31,6 @@ if [[ "${CIRRUS_CI}" == true ]] && # shellcheck disable=SC2034 RELOCATE_PATCH_DIR=true - # shellcheck disable=SC2034 if [[ "${CIRRUS_PR}" == false ]]; then # shellcheck disable=SC2034 @@ -50,13 +50,13 @@ if [[ "${CIRRUS_CI}" == true ]] && CI \ CIRRUS_BASE_SHA \ CIRRUS_BRANCH \ - CIRRUS_BUILD_ID CIRRUS_BUILD_ID \ CIRRUS_CI \ CIRRUS_DEFAULT_BRANCH \ CIRRUS_PR \ CIRRUS_REPO_FULL_NAME \ - CIRRUS_TASK_ID + CIRRUS_TASK_ID \ + GITHUB_CHECK_SUITE_ID # shellcheck disable=SC2034 GIT_BRANCH_SHA=${CIRRUS_BASE_SHA} @@ -99,4 +99,4 @@ function cirrusci_artifact_url dir=${PATCH_DIR##*/} echo "https://api.cirrus-ci.com/v1/artifact/task/${CIRRUS_TASK_ID}/other/${dir}" -} \ No newline at end of file +}