Skip to content

Commit 8c13b52

Browse files
authored
Update circle.yml to test against typescript@next (palantir#2288)
1 parent 7fb5223 commit 8c13b52

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

circle.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ general:
55
dependencies:
66
pre:
77
- node ./scripts/assertMinCircleNodes.js $CIRCLE_NODE_TOTAL
8-
- case $CIRCLE_NODE_INDEX in 0) nvm use 4.1.2 ;; 1) nvm use 5.7 ;; [2-3]) nvm use 6.1 ;; esac
8+
- case $CIRCLE_NODE_INDEX in 0) nvm use 4.1.2 ;; 1) nvm use 5.7 ;; [2-4]) nvm use 6.1 ;; esac
99
override:
1010
- yarn
1111
test:
1212
override:
13-
- case $CIRCLE_NODE_INDEX in [0-2]) yarn verify ;; 3) npm run clean && yarn compile && yarn add [email protected] && yarn test ;; esac:
13+
- 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:
1414
parallel: true
1515
deployment:
1616
npm-latest:

scripts/assertMinCircleNodes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
var requiredNodes = 4;
1+
var requiredNodes = 5;
22
var nodes = parseInt(process.argv[2], 10);
33
if (requiredNodes != null && requiredNodes > nodes) {
4-
console.error("ERROR: You must run CircleCI with 4 parallel nodes");
4+
console.error("ERROR: You must run CircleCI with " + requiredNodes + " parallel nodes");
55
console.error(" This ensures that different environments are tested for TSLint compatibility");
66
console.error(" https://circleci.com/gh/<YOUR ACCOUNT>/tslint/edit#parallel-builds");
77
process.exit(1);

0 commit comments

Comments
 (0)