Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2019-08-02 21:56:11 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2019-08-02 21:56:11 +0300
commit0104cc6a8f6950f0a264ff18fdb15a6b8fe5fb3e (patch)
tree04bc46756dd5fa4e47d35d08ace146c76e64d819 /scripts
parent2f2f6c104b2a0115a7fb1ab24673b587c27e4365 (diff)
[ci] Skip lanes on ppc/wasm changes. (#15995)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci/run-jenkins.sh27
1 files changed, 22 insertions, 5 deletions
diff --git a/scripts/ci/run-jenkins.sh b/scripts/ci/run-jenkins.sh
index a645c2d18f5..c1a10ad6bd5 100755
--- a/scripts/ci/run-jenkins.sh
+++ b/scripts/ci/run-jenkins.sh
@@ -17,15 +17,32 @@ if [[ ${CI_TAGS} == *'pull-request'* ]]; then
# Skip lanes which are not affected by the PR
wget -O pr-contents.diff "${ghprbPullLink}.diff"
grep '^diff' pr-contents.diff > pr-files.txt
- echo "Files affected by the PR:"
+ echo "Files affected by the PR:"
cat pr-files.txt
# FIXME: Add more
+ skip=false
+ skip_step=""
if ! grep -q -v a/netcore pr-files.txt; then
- echo "NetCore only PR, skipping."
- ${TESTCMD} --label="Skipped on NETCORE." --timeout=60m --fatal sh -c 'exit 0'
- if [[ $CI_TAGS == *'apidiff'* ]]; then report_github_status "success" "API Diff" "Skipped." || true; fi
- if [[ $CI_TAGS == *'csprojdiff'* ]]; then report_github_status "success" "Project Files Diff" "Skipped." || true; fi
+ skip_step="NETCORE"
+ skip=true
+ fi
+ if ! grep -q -v a/mono/mini/mini-ppc pr-files.txt; then
+ skip_step="PPC"
+ skip=true
+ fi
+ if ! grep -q -v a/sdks/wasm pr-files.txt; then
+ if [[ ${CI_TAGS} == *'webassembly'* ]] || [[ ${CI_TAGS} == *'wasm'* ]]; then
+ true
+ else
+ skip_step="WASM"
+ skip=true
+ fi
+ fi
+ if [ $skip = true ]; then
+ ${TESTCMD} --label="Skipped on ${skip_step}." --timeout=60m --fatal sh -c 'exit 0'
+ if [[ $CI_TAGS == *'apidiff'* ]]; then report_github_status "success" "API Diff" "Skipped." || true; fi
+ if [[ $CI_TAGS == *'csprojdiff'* ]]; then report_github_status "success" "Project Files Diff" "Skipped." || true; fi
exit 0
fi
fi