Skip to content

Commit

Permalink
Added trigger of core repo on successful build to master
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-Meldrum committed Mar 20, 2017
1 parent 158c15e commit 687110b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ cache:
after_success:
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
- test $TRAVIS_BRANCH = "master" && ./trigger_core_repo_build.sh
14 changes: 14 additions & 0 deletions trigger_core_repo_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#! /bin/bash

body='{
"request": {
"branch":"master"
}}'

curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token KfyuQBqOE1K4Qm5bbfYMKw" \
-d "$body" \
https://api.travis-ci.com/repo/flygare%2FQvantel/requests

0 comments on commit 687110b

Please sign in to comment.