Created
June 26, 2017 18:18
-
-
Save electrum/62d4782c974cf7f4a1a35b3a481f67ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -eu | |
job=$1 | |
token=$(perl -ne '/access_token: (.*)/ && print $1' ~/.travis/config.yml) | |
curl -sS -X POST \ | |
-H "Content-Type: application/json" \ | |
-H "Accept: application/json" \ | |
-H "Travis-API-Version: 3" \ | |
-H "Authorization: token ${token}" \ | |
-d "{\"quiet\": true}" \ | |
https://api.travis-ci.org/job/${job}/debug | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment