aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-03-31 04:57:50 +0800
committerkumavis <aaron@kumavis.me>2018-03-31 04:57:50 +0800
commit7dde948c451a24313ca1d98b804a761245cc61c1 (patch)
treefc85c1d727f9dd4b95411e5f822e28d12874a720 /.circleci
parent32bb09bcb9dd5f9db86967128f7d0fe154fe9922 (diff)
parent8e0f39353dd47c4a201aaf2ee160912846f2e68b (diff)
downloadtangerine-wallet-browser-7dde948c451a24313ca1d98b804a761245cc61c1.tar
tangerine-wallet-browser-7dde948c451a24313ca1d98b804a761245cc61c1.tar.gz
tangerine-wallet-browser-7dde948c451a24313ca1d98b804a761245cc61c1.tar.bz2
tangerine-wallet-browser-7dde948c451a24313ca1d98b804a761245cc61c1.tar.lz
tangerine-wallet-browser-7dde948c451a24313ca1d98b804a761245cc61c1.tar.xz
tangerine-wallet-browser-7dde948c451a24313ca1d98b804a761245cc61c1.tar.zst
tangerine-wallet-browser-7dde948c451a24313ca1d98b804a761245cc61c1.zip
Merge branch 'master' of github.com:MetaMask/metamask-extension into ci-screens
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index ef08d4c48..737fc3398 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -103,6 +103,32 @@ jobs:
key: build-cache-{{ .Revision }}
paths:
- dist
+ - store_artifacts:
+ path: dist/mascara
+ destination: builds/mascara
+ - store_artifacts:
+ path: builds
+ destination: builds
+ - run:
+ name: build:announce
+ command: |
+ CIRCLE_PR_NUMBER="${CIRCLE_PR_NUMBER:-${CIRCLE_PULL_REQUEST##*/}}"
+ SHORT_SHA1=$(echo $CIRCLE_SHA1 | cut -c 1-7)
+ BUILD_LINK_BASE="https://$CIRCLE_BUILD_NUM-42009758-gh.circle-artifacts.com/0/builds"
+ VERSION=$(node -p 'require("./dist/chrome/manifest.json").version')
+ MASCARA="$BUILD_LINK_BASE/mascara/home.html"
+ CHROME="$BUILD_LINK_BASE/metamask-chrome-$VERSION.zip"
+ FIREFOX="$BUILD_LINK_BASE/metamask-firefox-$VERSION.zip"
+ OPERA="$BUILD_LINK_BASE/metamask-opera-$VERSION.zip"
+ EDGE="$BUILD_LINK_BASE/metamask-edge-$VERSION.zip"
+ COMMENT_MAIN="Builds ready [$SHORT_SHA1]: [mascara][mascara], [chrome][chrome], [firefox][firefox], [edge][edge], [opera][opera]"
+ COMMENT_LINKS="[mascara]:$MASCARA\n[chrome]:$CHROME\n[firefox]:$FIREFOX\n[opera]:$OPERA\n[edge]:$EDGE\n"
+ COMMENT_BODY="$COMMENT_MAIN\n\n$COMMENT_LINKS"
+ 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: