aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-03-29 08:38:28 +0800
committerkumavis <aaron@kumavis.me>2018-03-29 08:38:28 +0800
commitd06c6bb4cac9a616067e294c8ddefac572b66441 (patch)
tree4c59fc0675e6c7127a2e5144c42901f936f7f627 /.circleci
parentf7b4c9621fde7840fcdc0583c3cfde97b5e81cd8 (diff)
downloadtangerine-wallet-browser-d06c6bb4cac9a616067e294c8ddefac572b66441.tar
tangerine-wallet-browser-d06c6bb4cac9a616067e294c8ddefac572b66441.tar.gz
tangerine-wallet-browser-d06c6bb4cac9a616067e294c8ddefac572b66441.tar.bz2
tangerine-wallet-browser-d06c6bb4cac9a616067e294c8ddefac572b66441.tar.lz
tangerine-wallet-browser-d06c6bb4cac9a616067e294c8ddefac572b66441.tar.xz
tangerine-wallet-browser-d06c6bb4cac9a616067e294c8ddefac572b66441.tar.zst
tangerine-wallet-browser-d06c6bb4cac9a616067e294c8ddefac572b66441.zip
ci - announce QA build to GitHub pull request
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 2c75aada9..ac05e747c 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -100,6 +100,18 @@ jobs:
- dist
- store_artifacts:
path: dist/mascara
+ - run:
+ name: build:announce
+ command: |
+ CIRCLE_PR_NUMBER="${CIRCLE_PR_NUMBER:-${CIRCLE_PULL_REQUEST##*/}}"
+ SHORT_SHA1=$(echo $CIRCLE_SHA1 | cut -c 1-7)
+ QA_BUILD_URL="https://$CIRCLE_BUILD_NUM-42009758-gh.circle-artifacts.com/0/home/circleci/project/dist/mascara/home.html"
+ COMMENT_BODY="[Try QA Build for $SHORT_SHA1]($QA_BUILD_URL)"
+ JSON_PAYLOAD="{\"body\":\"$COMMENT_BODY\"}"
+ POST_COMMENT_URI="https://api.github.com/repos/metamask/metamask-extension/issues/$CIRCLE_PR_NUMBER/comments"
+ echo "Announcement:\n$COMMENT_BODY"
+ echo "Posting to $POST_COMMENT_URI"
+ curl -d "$JSON_PAYLOAD" -H "Authorization: token $GITHUB_COMMENT_TOKEN" $POST_COMMENT_URI
prep-scss:
docker: