Skip to content

Commit 9585939

Browse files
committed
ci(): upgrade circle ci config to 2.0
1 parent 5e2708c commit 9585939

File tree

1 file changed

+24
-19
lines changed

1 file changed

+24
-19
lines changed

circle.yml

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
1-
general:
2-
branches:
3-
ignore:
4-
- gh-pages
5-
machine:
6-
node:
7-
version: 5.7.0
8-
dependencies:
9-
pre:
10-
- npm i -g npm
11-
- npm i -g codecov
12-
- npm i js-data@rc
13-
test:
14-
post:
15-
- cat ./coverage/lcov.info | codecov
16-
general:
17-
artifacts:
18-
- "dist"
19-
- "fetch/dist"
1+
version: 2
2+
jobs:
3+
test:
4+
docker:
5+
- image: circleci/node:8
6+
steps:
7+
- checkout
8+
- run: npm install
9+
- run: npm i codecov js-data@3
10+
- run:
11+
name: Test
12+
command: npm test
13+
- run:
14+
name: Generate code coverage
15+
command: cat ./coverage/lcov.info | codecov
16+
- store_artifacts:
17+
path: dist
18+
destination: fetch/dist
19+
20+
workflows:
21+
version: 2
22+
build_and_test:
23+
jobs:
24+
- test

0 commit comments

Comments
 (0)