Only trigger dependent build for master, staging and live

This commit is contained in:
Adam Shimali
2016-05-11 12:39:39 +01:00
parent 829922e61f
commit ba874cfd43

View File

@@ -7,6 +7,12 @@
# - ./trigger-dependent-build
#
case $TRAVIS_BRANCH in
master|staging|live)
echo "Triggering dependent build for $TRAVIS_BRANCH"
curl -vvv -s -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Travis-API-Version: 3" -H "Authorization: token $auth_token" -d '{"request":{"branch":"master","config":{"env":{"global":["ENVIRONMENT='$TRAVIS_BRANCH'"]}}}}' https://api.travis-ci.org/repo/alphagov%2Fnotifications-functional-tests/requests
;;
*)
echo "Not triggering dependent build for $TRAVIS_BRANCH"
;;
esac