more travis

This commit is contained in:
hathach 2019-07-08 18:03:48 +07:00
parent 8c990194df
commit ae930dce83
2 changed files with 11 additions and 1 deletions

View File

@ -27,4 +27,4 @@ script:
after_success:
# Trigger mynewt-tinyusb-example repo each push
- "curl -s -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Travis-API-Version: 3' -H 'Authorization: token $TRAVIS_TOKEN' -d '{ \"request\": { \"branch\":\"master\" }}' https://api.travis-ci.com/repo/hathach%2Fmynewt-tinyusb-example/requests"
- source tools/build_sucess.sh

10
tools/build_success.sh Normal file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
# Trigger mynewt-tinyusb-example repo each push
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token $TRAVIS_TOKEN" \
-d '{ "request": { "branch":"master" }}' \
https://api.travis-ci.com/repo/hathach%2Fmynewt-tinyusb-example/requests