2016-09-21 17:46:00 +03:00
|
|
|
#!/bin/bash -e
|
2018-04-05 08:37:08 +03:00
|
|
|
|
2018-05-29 18:03:54 +03:00
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")/.."
|
|
|
|
WORKSPACE=$(pwd)
|
|
|
|
|
2018-04-05 08:37:08 +03:00
|
|
|
report_error ()
|
|
|
|
{
|
2018-05-29 18:03:54 +03:00
|
|
|
echo "🔥 [Provisioning failed]($BUILD_URL/console) 🔥" >> "$WORKSPACE/jenkins/pr-comments.md"
|
2018-04-05 08:37:08 +03:00
|
|
|
}
|
|
|
|
trap report_error ERR
|
|
|
|
|
2018-06-26 16:50:54 +03:00
|
|
|
# SC2154: ghprbPullId is referenced but not assigned.
|
|
|
|
# shellcheck disable=SC2154
|
|
|
|
if test -n "$ghprbPullId" && ./jenkins/fetch-pr-labels.sh --check=skip-public-jenkins; then
|
|
|
|
echo "Skipping provisioning diff because the label 'skip-public-jenkins' was found."
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2016-09-21 17:46:00 +03:00
|
|
|
./system-dependencies.sh --provision-all
|
2018-04-05 08:37:08 +03:00
|
|
|
|
2018-11-01 00:47:28 +03:00
|
|
|
sudo rm -Rf /Developer/MonoTouch
|
|
|
|
sudo rm -Rf /Library/Frameworks/Xamarin.iOS.framework
|
|
|
|
sudo rm -Rf /Library/Frameworks/Xamarin.Mac.framework
|
|
|
|
|
2018-05-29 18:03:54 +03:00
|
|
|
echo "✅ [Provisioning succeeded]($BUILD_URL/console)" >> "$WORKSPACE/jenkins/pr-comments.md"
|