From 84069433608b28d85b3e23ef37027f3da7d06914 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Mon, 28 Jan 2019 17:19:56 +0000 Subject: [PATCH] Ugly quote fix for travis.yml - inspiration from https://github.com/travis-ci/travis-ci/issues/8597#issuecomment-337240810 - https://stackoverflow.com/questions/47742913/travis-ci-how-to-use-repository-variables-in-travis-yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f24986b3d0..066b37722d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,4 +62,4 @@ after_success: fi after_script: - - "curl -X POST -H 'Content-Type:application/json' -d '{\"attachments\": [{\"color\": \"warning\", \"fallback\": \"Build Notification: ${TRAVIS_BUILD_WEB_URL}\", \"title\": \"Build Notification\", \"text\": \"${TRAVIS_BUILD_WEB_URL}\"}]}' $SLACK_URL" + - "curl -X POST -H \"Content-Type:application/json\" -d \"{\\\"attachments\\\": [{\\\"color\\\": \\\"warning\\\", \\\"fallback\\\": \\\"Build Notification: $TRAVIS_BUILD_WEB_URL\\\", \\\"title\\\": \\\"Build Notification\\\", \\\"text\\\": \\\"$TRAVIS_BUILD_WEB_URL\\\"}]}\" $SLACK_URL"