Proper travis notification config

This commit is contained in:
Hannah Wolfe 2019-01-29 13:22:08 +00:00
parent 82cc82dc6e
commit c8bd861f41
1 changed files with 2 additions and 2 deletions

View File

@ -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