From 5020c8c0177f18506cfe8ef0e92fb29c53b219c1 Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Sat, 16 Feb 2019 13:05:55 +0100 Subject: [PATCH] Update .travis.yml --- .travis.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index d17bd7cb8..1ce65d2aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,11 +39,21 @@ after_success: - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh - chmod +x send.sh - ./send.sh success $WEBHOOK_URL - + - if [ $TRAVIS_BRANCH == "master" ] && [ $TRAVIS_EVENT_TYPE == "push" ]; then + wget https://raw.githubusercontent.com/Human-Connection/Discord-Bot/develop/tester.sh && + chmod +x tester.sh && + ./tester.sh alpha $WEBHOOK_URL; + fi + - if [ $TRAVIS_BRANCH == "develop" ] && [ $TRAVIS_EVENT_TYPE == "push" ]; then + wget https://raw.githubusercontent.com/Human-Connection/Discord-Bot/develop/tester.sh && + chmod +x tester.sh && + ./tester.sh staging $WEBHOOK_URL; + fi + after_failure: - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh - chmod +x send.sh - - ./send.sh failure $WEBHOOK_URL +- ./send.sh failure $WEBHOOK_URL deploy: - provider: script