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

Add test to circleci for environments with typescript@2.0.10 #2034

Merged
merged 1 commit into from
Jan 18, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ general:
- gh-pages
dependencies:
pre:
- case $CIRCLE_NODE_INDEX in 0) nvm use 4.2 ;; 1) nvm use 5.7 ;; 2) nvm use 6.1 ;; esac
- case $CIRCLE_NODE_INDEX in 0) nvm use 4.2 ;; 1) nvm use 5.7 ;; [2-3]) nvm use 6.1 ;; esac
test:
override:
- npm run verify
- case $CIRCLE_NODE_INDEX in [0-2]) npm run verify ;; 3) npm run clean && npm run compile && npm i typescript@2.0.10 && npm run test ;; esac:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about making npm run clean && npm run compile && npm i typescript@2.0.10 && npm run test a new NPM script called verify-with-ts2.0 to make this more readable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason I didn't do that is because it can mess up someone's dev environment without them realizing it

parallel: true
deployment:
npm-latest:
# match semver tag (e.g. 3.12.7)
Expand Down