0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Testing simpler travis notification style

This commit is contained in:
Hannah Wolfe 2019-01-29 13:09:31 +00:00
parent 9fd9ad3fbb
commit f9576a7ff6

View file

@ -61,8 +61,7 @@ after_success:
echo "This is a PR. No coverage generated."
fi
after_script:
- |
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
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