Skip to content

Commit 5d886b1

Browse files
author
Dom Harrington
committed
Adding circle ci config
1 parent 5ea75c6 commit 5d886b1

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.circleci/config.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node:10
6+
environment:
7+
CC_TEST_REPORTER_ID: 78920f9261ea42577b43485502978df56a1b906f8302787fa4874c6741b7faf9
8+
9+
working_directory: ~/repo
10+
11+
steps:
12+
- checkout
13+
14+
# Download and cache dependencies
15+
- restore_cache:
16+
keys:
17+
- v1-dependencies-{{ checksum "package.json" }}
18+
# fallback to using the latest cache if no exact match is found
19+
- v1-dependencies-
20+
21+
- run: npm install
22+
23+
- save_cache:
24+
paths:
25+
- node_modules
26+
key: v1-dependencies-{{ checksum "package.json" }}
27+
28+
# run tests!
29+
- run: curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
30+
- run: chmod +x ./cc-test-reporter
31+
- run: ./cc-test-reporter before-build
32+
- run: npm test
33+
- run: ./cc-test-reporter after-build -t lcov --exit-code $?

0 commit comments

Comments
 (0)