From 6b0f865f89f7d9c9e5b902be08d5bbdd1a32ab12 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Mon, 11 Mar 2019 16:30:25 +0000 Subject: [PATCH] Update .travis.yml - use std notifications --- .travis.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index a19377923f..7526801cc7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -49,7 +49,9 @@ script: | yarn ci fi -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 +notifications: + slack: + secure: iqURdUniayDtpj8twQIUi027jkFDMfoqyYv6rmmF7Nb1Y+XoLeQbUNv1EQEoGG+N7n9FnRXQe6TawyjCk+6qBQJoEI2O4xSpvtnC81nnX5EKbNVgT+tfBXH/bUaLtgY3Z3NfoeCmwR3fK3wOhgN9m3Il5YgXx7KJFAXxjnYrKUo= + on_success: change + on_failure: always + on_pull_requests: false