mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-14 17:22:17 -05:00
Only trigger dependent build for master, staging and live
This commit is contained in:
@@ -7,6 +7,12 @@
|
||||
# - ./trigger-dependent-build
|
||||
#
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user