forked from palantir/tslint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
27 lines (27 loc) · 798 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
general:
branches:
ignore:
- gh-pages
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-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 typescript@next && yarn test ;; esac:
parallel: true
deployment:
npm-latest:
# match semver tag (e.g. 3.12.7)
tag: /^\d\d?\.\d\d?\.\d\d?$/
owner: palantir
commands:
- ./scripts/npmPublish.sh latest
npm-next:
# match semver tag with dev prerelease tag (e.g. 3.12.7-dev.2)
tag: /^\d\d?\.\d\d?\.\d\d?-dev\.\d\d?$/
owner: palantir
commands:
- ./scripts/npmPublish.sh next