From 16d9c60a0ed8ddb83e6be18f835c31d8b90333ee Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Tue, 26 Jan 2016 12:34:37 -0800 Subject: [PATCH] chore(circleci): use a github token when running tsd Also increase the heap size limit as a workaround for https://github.com/angular/angular/issues/5229 Fixes #6602 --- circle.yml | 13 +++++++++++++ package.json | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index f4ea02a4c2..98d48bb151 100644 --- a/circle.yml +++ b/circle.yml @@ -1,6 +1,19 @@ machine: node: version: 5.4.1 + +dependencies: + override: + - npm install: + environment: + # Token for tsd to increase github rate limit + # See https://github.com/DefinitelyTyped/tsd#tsdrc + # This is not hidden using https://circleci.com/docs/fork-pr-builds#details + # because those are not visible for pull requests, and those should also be reliable. + # This SSO token belongs to github account angular-github-ratelimit-token which has no access + # (password is in Valentine) + TSD_GITHUB_TOKEN: ef474500309daea53d5991b3079159a29520a40b + test: override: - npm run build diff --git a/package.json b/package.json index 303ffb607c..f65b80919f 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "scripts": { "preinstall": "node tools/analytics/build-analytics start install npm3-install && node tools/analytics/build-analytics start install npm-preinstall && node tools/npm/check-node-modules && node tools/analytics/build-analytics success install npm-preinstall && node tools/analytics/build-analytics start install npm-install-net", "postinstall": "node tools/analytics/build-analytics success install npm-install-net && node tools/analytics/build-analytics start install npm-postinstall && node tools/npm/copy-npm-shrinkwrap && node tools/chromedriverpatch.js && webdriver-manager update && bower install && gulp pubget.dart && tsd reinstall --overwrite --clean --config modules/angular2/tsd.json && tsd reinstall --overwrite --clean --config tools/tsd.json && tsd reinstall --overwrite --config modules/angular1_router/tsd.json && node tools/analytics/build-analytics success install npm-postinstall && node tools/analytics/build-analytics success install npm3-install", - "build": "gulp build.js", + "build": "node --max-old-space-size=2048 ./node_modules/.bin/gulp build.js", "test": "gulp test.all.js && gulp test.all.dart" }, "dependencies": {