mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-27 17:38:17 -04:00
Add trigger dependent build
This commit is contained in:
17
scripts/trigger-dependent-build.sh
Executable file
17
scripts/trigger-dependent-build.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash -x
|
||||
|
||||
# This script lives in each of the upstream repos. Add this to .travis.yml to
|
||||
# run after each successful build (assuming that the script is in the root of
|
||||
# the repo):
|
||||
# after_success:
|
||||
# - ./trigger-dependent-build
|
||||
#
|
||||
|
||||
# An authorization token generated by running:
|
||||
# gem install travis
|
||||
# travis login
|
||||
# travis token
|
||||
#
|
||||
|
||||
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"}}' https://api.travis-ci.org/repo/alphagov%2Fnotifications-functional-tests/requests
|
||||
|
||||
Reference in New Issue
Block a user