From ae930dce83f8d857db128f0fc6b643510f81b752 Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 8 Jul 2019 18:03:48 +0700 Subject: [PATCH] more travis --- .travis.yml | 2 +- tools/build_success.sh | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 tools/build_success.sh diff --git a/.travis.yml b/.travis.yml index 83b1a59e1..6fc78f25f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/tools/build_success.sh b/tools/build_success.sh new file mode 100644 index 000000000..df725bdce --- /dev/null +++ b/tools/build_success.sh @@ -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 \ No newline at end of file