mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Final travis.yaml config for slack
This commit is contained in:
parent
8406943360
commit
e20537e2bf
1 changed files with 4 additions and 2 deletions
|
@ -61,5 +61,7 @@ after_success:
|
|||
echo "This is a PR. No coverage generated."
|
||||
fi
|
||||
|
||||
after_script:
|
||||
- "curl -X POST -H \"Content-Type:application/json\" -d \"{\\\"attachments\\\": [{\\\"color\\\": \\\"warning\\\", \\\"fallback\\\": \\\"Build Notification: $TRAVIS_BUILD_WEB_URL\\\", \\\"title\\\": \\\"Build Notification\\\", \\\"text\\\": \\\"$TRAVIS_BUILD_WEB_URL\\\"}]}\" $SLACK_URL"
|
||||
after_failure: |
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue