mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Another attempt at travis notifications
This commit is contained in:
parent
bc90b8ec27
commit
fbee79f691
1 changed files with 4 additions and 3 deletions
|
@ -61,7 +61,8 @@ after_success:
|
||||||
echo "This is a PR. No coverage generated."
|
echo "This is a PR. No coverage generated."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
after_failure: |
|
after_script:
|
||||||
if [ "${TRAVIS_EVENT_TYPE}" = "cron" ]; then
|
- |
|
||||||
"curl -X POST -H \"Content-Type:application/json\" -d \"{\\\"attachments\\\": [{\\\"color\\\": \\\"danger\\\", \\\"fallback\\\": \\\"Build Failure: $TRAVIS_JOB_WEB_URL\\\", \\\"title\\\": \\\"Build Failure\\\", \\\"text\\\": \\\"$TRAVIS_JOB_WEB_URL\\\"}]}\" $SLACK_URL"
|
if [ "${TRAVIS_EVENT_TYPE}" != "cron" ]; then
|
||||||
|
curl -X POST -H "Content-Type:application/json" -d "{\"attachments\": [{\"color\": \"danger\", \"fallback\": \"Build Failure: $TRAVIS_JOB_WEB_URL\", \"title\": \"Build Failure\", \"text\": \"$TRAVIS_JOB_WEB_URL\"}]}" $SLACK_URL
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue