Skip to content

Instantly share code, notes, and snippets.

@electrum
Created June 26, 2017 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save electrum/62d4782c974cf7f4a1a35b3a481f67ba to your computer and use it in GitHub Desktop.
Save electrum/62d4782c974cf7f4a1a35b3a481f67ba to your computer and use it in GitHub Desktop.
#!/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