We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c9612c commit 9f63f90Copy full SHA for 9f63f90
tools/test/travis-ci/functions.sh
@@ -9,13 +9,15 @@ die() { echo "E: ${1}" 1>&2; exit ${2:-1}; }
9
set_status()
10
{
11
12
- local json="
+ local json=$(<<< "
13
14
'state': '${1}',
15
'description': '${2}',
16
'context': 'travis-ci/${TRAVIS_JOB_NAME}',
17
'target_url': 'https://travis-ci.org/${TRAVIS_REPO_SLUG}/jobs/${TRAVIS_JOB_ID}'
18
- }"
+ }" tr "'" '"')
19
+
20
+ <<< "${json}" jq .
21
22
curl --verbose --user "${MBED_BOT}" --request POST \
23
"https://api.github.com/repos/${TRAVIS_REPO_SLUG}/statuses/${TRAVIS_PULL_REQUEST_SHA:-$TRAVIS_COMMIT}" \
0 commit comments