[ci] Add CI_TAGS for apidiff and ms-test-suite
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 11 Aug 2017 21:52:47 +0000 (23:52 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 11 Aug 2017 21:56:43 +0000 (23:56 +0200)
Easier to maintain than the "label" which could change depending on the bots.

scripts/ci/run-test-default.sh

index de0ec47d2ca7403a6d854458fd4d1a86b2c491b1..daad48d3cc538f196077065665e323834e0c5d65 100755 (executable)
@@ -99,11 +99,11 @@ ${TESTCMD} --label=System.IO.Compression --timeout=5m make -w -C mcs/class/Syste
 if [[ ${label} == w* ]]; then ${TESTCMD} --label=symbolicate --skip; else ${TESTCMD} --label=symbolicate --timeout=60m make -w -C mcs/tools/mono-symbolicate check; fi
 ${TESTCMD} --label=monolinker --timeout=10m make -w -C mcs/tools/linker check
 
-if [[ ${label} == osx-* ]]
+if [[ $CI_TAGS == *'ms-test-suite'* ]]
 then ${TESTCMD} --label=ms-test-suite --timeout=30m make -w -C acceptance-tests check-ms-test-suite
 else ${TESTCMD} --label=ms-test-suite --skip;
 fi
-if [[ ${label} == 'ubuntu-1404-amd64' ]]; then
+if [[ $CI_TAGS == *'apidiff'* ]]; then
     source ${MONO_REPO_ROOT}/scripts/ci/util.sh
     if ${TESTCMD} --label=apidiff --timeout=15m --fatal make -w -C mcs -j4 mono-api-diff
     then report_github_status "success" "API Diff" "No public API changes found." || true