Skip to content

Commit

Permalink
Merge pull request #56 from buildit/develop
Browse files Browse the repository at this point in the history
Develop to Master PR for fixing build
  • Loading branch information
brodiebuildit authored Mar 23, 2018
2 parents df017a3 + ab4d4ec commit 1c8f826
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ notifications:
- secure: lqpbNypYyLua0TCRYQvi8QXoVyTtUdohsvIERQA4NMt3gW2/8NHXNGDUAFfJq8fYTUY+cF9lzunYngeInsb/x54fQbNqAL6/V6NxVDaUyKAKJsBKfngeKAfiAkp7JPQlEoE9uRXmvalIBTTwcv26/uwgqeXimF9DTRpa56PYI6LZX6Y1+A8DEfUd5rXzT6NrehawsSUsSeZCo5Mla/umbKuAkEzqCuiXBdgcDOn9IoqMbRRq004fC0Gh8ysjf5Oap86bdWeRomufBz9Cf0ewXUD74EuRlTHj1Ykfpb0U95LsjMSyrsjxBmt9j2ElAt+vlBHKCZi40FNZIHaXYaolhsTWy9iwXs2txcFbfHBgvnJ/2sKFTaVU6hDQuWV7wga/Hd3JAvoyRiDBEzV2iokQBzmkv3xw+hdw/hUX0/BavMuiRVpgbMB4SRl5auCLBdJ6Of/bTX4RNOyeDWG944RmdO9xbiAJd8sMtf2sp239zxkZUzZ1sRTZs1TbsOtJRJ2TbFLpi4EWQTMQkc7UXWGdyLX0vX9sLfoYatNYchtcEuXBPsSmAwNE/nfv7B4WKTTCgSn5mmGqUadqpc0/t1Jk7P9ZLla9Y4JNj66U4sR1yuT25mcCbxaz3tr2VY7QUFQPt9CbMUUGTRRIK8sLRydoCSVs+KXgMvmZcLUhNlwsf/k=
on_pull_requests: true
on_success: change
after_success:
- if [[ ${TRAVIS_TAG} =~ (${NPM_TAG_REGEXP}) ]]; then curl -X POST --data-urlencode "payload={\"text\": \"A successful deployment occurred with tag ${TRAVIS_TAG} for project ${TRAVIS_REPO_SLUG} \"}" ${SLACK_NOTIFICATION_URL}; fi
after_deploy:
- ./scripts/notify.sh
7 changes: 7 additions & 0 deletions scripts/notify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
if [[ ${TRAVIS_TAG} =~ (${PROD_TAG_REGEXP}) && ! -z $TRAVIS_TAG ]]; then
echo "Sending Slack Notification";
curl -X POST --data-urlencode 'payload={"text": "A successful deployment occurred with tag '"${TRAVIS_TAG}"' for project '"${TRAVIS_REPO_SLUG}"' "}"' ${SLACK_NOTIFICATION_URL};
else
echo "No need to send notifaction";
fi

0 comments on commit 1c8f826

Please sign in to comment.