Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
reduce containers back to 4 (#2292)
Browse files Browse the repository at this point in the history
  • Loading branch information
nchen63 authored Mar 3, 2017
1 parent ee721bb commit 3ea76fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ general:
dependencies:
pre:
- node ./scripts/assertMinCircleNodes.js $CIRCLE_NODE_TOTAL
- case $CIRCLE_NODE_INDEX in 0) nvm use 4.1.2 ;; 1) nvm use 5.7 ;; [2-4]) nvm use 6.1 ;; esac
- case $CIRCLE_NODE_INDEX in 0) nvm use 4.1.2 ;; 1) nvm use 5.7 ;; [2-3]) nvm use 6.1 ;; esac
override:
- yarn
test:
override:
- case $CIRCLE_NODE_INDEX in [0-2]) yarn verify ;; 3) npm run clean && yarn compile && yarn add [email protected] && yarn test ;; 4) npm run clean && yarn compile && yarn add typescript@next && yarn test ;; esac:
- case $CIRCLE_NODE_INDEX in [0-1]) yarn verify ;; 2) npm run clean && yarn compile && yarn add [email protected] && yarn test ;; 3) npm run clean && yarn compile && yarn add typescript@next && yarn test ;; esac:
parallel: true
deployment:
npm-latest:
Expand Down
2 changes: 1 addition & 1 deletion scripts/assertMinCircleNodes.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var requiredNodes = 5;
var requiredNodes = 4;
var nodes = parseInt(process.argv[2], 10);
if (requiredNodes != null && requiredNodes > nodes) {
console.error("ERROR: You must run CircleCI with " + requiredNodes + " parallel nodes");
Expand Down

0 comments on commit 3ea76fa

Please sign in to comment.