File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -9,19 +9,18 @@ die() { echo "E: ${1}" 1>&2; exit ${2:-1}; }
9
9
set_status ()
10
10
{
11
11
12
- local json=$( <<< "
12
+ local job_name=$( <<< " ${TRAVIS_JOB_NAME}" tr ' ' ' _' )
13
+ local payload=$( <<< "
13
14
{
14
15
'state': '${1}',
15
16
'description': '${2}',
16
- 'context': 'travis-ci/${TRAVIS_JOB_NAME }',
17
+ 'context': 'travis-ci/${job_name }',
17
18
'target_url': 'https://travis-ci.org/${TRAVIS_REPO_SLUG}/jobs/${TRAVIS_JOB_ID}'
18
19
}" tr " '" ' "' )
19
20
20
- <<< " ${json}" jq .
21
-
22
21
curl --verbose --user " ${MBED_BOT} " --request POST \
23
22
" https://api.github.com/repos/${TRAVIS_REPO_SLUG} /statuses/${TRAVIS_PULL_REQUEST_SHA:- $TRAVIS_COMMIT } " \
24
- --data @- <<< " ${json }"
23
+ --data @- <<< " ${payload }"
25
24
}
26
25
27
26
_install_gcc ()
You can’t perform that action at this time.
0 commit comments