Proper travis notification config
This commit is contained in:
parent
82cc82dc6e
commit
c8bd861f41
@ -61,7 +61,7 @@ after_success:
|
||||
echo "This is a PR. No coverage generated."
|
||||
fi
|
||||
|
||||
after_script: |
|
||||
if [ "${TRAVIS_EVENT_TYPE}" != "cron" ]; then
|
||||
after_failure: |
|
||||
if [ "${TRAVIS_EVENT_TYPE}" == "cron" ]; then
|
||||
curl -X POST --data-urlencode "payload={\"attachments\": [{\"color\": \"danger\", \"fallback\": \"Build Failure: $TRAVIS_JOB_WEB_URL\", \"title\": \"Build Failure\", \"text\": \"$TRAVIS_JOB_WEB_URL\"}]}" $SLACK_URL
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user