diff options
Diffstat (limited to 'scripts/ci/run-jenkins.sh')
-rwxr-xr-x | scripts/ci/run-jenkins.sh | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/scripts/ci/run-jenkins.sh b/scripts/ci/run-jenkins.sh index 1b2eda871ee..e0ad1059ac0 100755 --- a/scripts/ci/run-jenkins.sh +++ b/scripts/ci/run-jenkins.sh @@ -270,8 +270,24 @@ elif [[ ${CI_TAGS} == *'stress-tests'* ]]; then ${MONO_REPO_ROOT}/sc elif [[ ${CI_TAGS} == *'interpreter'* ]]; then ${MONO_REPO_ROOT}/scripts/ci/run-test-interpreter.sh; elif [[ ${CI_TAGS} == *'mcs-compiler'* ]]; then ${MONO_REPO_ROOT}/scripts/ci/run-test-mcs.sh; elif [[ ${CI_TAGS} == *'mac-sdk'* ]]; then ${MONO_REPO_ROOT}/scripts/ci/run-test-mac-sdk.sh; -elif [[ ${CI_TAGS} == *'no-tests'* ]]; then exit 0; +elif [[ ${CI_TAGS} == *'no-tests'* ]]; then echo "Skipping tests."; else make check-ci; fi +if [[ $CI_TAGS == *'apidiff'* ]]; then + if ${TESTCMD} --label=apidiff --timeout=15m --fatal make -w -C mcs -j ${CI_CPU_COUNT} mono-api-diff + then report_github_status "success" "API Diff" "No public API changes found." || true + else report_github_status "error" "API Diff" "The public API changed." "$BUILD_URL/Public_20API_20Diff/" || true + fi +else ${TESTCMD} --label=apidiff --skip +fi +if [[ $CI_TAGS == *'csprojdiff'* ]]; then + make update-solution-files + if ${TESTCMD} --label=csprojdiff --timeout=5m --fatal make -w -C mcs mono-csproj-diff + then report_github_status "success" "Project Files Diff" "No csproj file changes found." || true + else report_github_status "error" "Project Files Diff" "The csproj files changed." "$BUILD_URL/Project_20Files_20Diff/" || true + fi +else ${TESTCMD} --label=csprojdiff --skip +fi + ${MONO_REPO_ROOT}/scripts/ci/run-upload-sentry.sh |