hathach 6 лет назад
Родитель
Сommit
ae930dce83
2 измененных файлов с 11 добавлено и 1 удалено
  1. 1 1
      .travis.yml
  2. 10 0
      tools/build_success.sh

+ 1 - 1
.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

+ 10 - 0
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