-
Notifications
You must be signed in to change notification settings - Fork 13
/
circle.yml
43 lines (38 loc) · 1.18 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
dependencies:
pre:
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
override:
- nvm install && nvm alias default $(cat .nvmrc)
- npm install
test:
# Rather than just running `npm test` (which would be Circle's default)
# we run explicit steps so that a build failure has a clearer source.
#
# Note that most tests are configured to run in parallel, so that you can get
# immediate gains by configuring # of containers via Circle.
override:
- npm run test:compile
- npm run test:style:
parallel: true
files:
- src/**/*.{ts,tsx}
- test/**/*.{ts,tsx}
- npm run test:unit:
parallel: true
files:
- test/unit/**/*.{ts,tsx}
environment:
MOCHA_FILE: "$CIRCLE_TEST_REPORTS/test:unit.xml"
- npm run test:integration:
parallel: true
files:
- test/integration/**/*.{ts,tsx}
environment:
MOCHA_FILE: "$CIRCLE_TEST_REPORTS/test:integration.xml"
deployment:
deploy:
branch: master
commands:
- git config --global user.email "[email protected]"
- git config --global user.name "Don Voy"
- npm run release