Skip to content

Commit 85229df

Browse files
author
Matt Hamann
committed
chore: enable circleci
1 parent 91e9106 commit 85229df

File tree

2 files changed

+57
-25
lines changed

2 files changed

+57
-25
lines changed

.circleci/config.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
version: 2.1
2+
3+
commands:
4+
test-nodejs:
5+
steps:
6+
- run:
7+
name: Versions
8+
command: npm version
9+
- checkout
10+
- restore_cache:
11+
keys:
12+
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ arch }}-npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}
13+
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ arch }}-npm-cache-master-{{ .Environment.CIRCLE_JOB }}
14+
- run:
15+
name: Install dependencies
16+
command: npm ci
17+
- run:
18+
name: Test
19+
command: npm test
20+
- coverage
21+
- save-npm-cache
22+
save-npm-cache:
23+
steps:
24+
- save_cache:
25+
key: v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ arch }}-npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}
26+
paths:
27+
- ~/.npm/_cacache
28+
coverage:
29+
steps:
30+
- run:
31+
command: npm run cover
32+
- run:
33+
command: npm run coveralls
34+
jobs:
35+
node-v10:
36+
docker:
37+
- image: node:10
38+
steps:
39+
- test-nodejs
40+
node-v12:
41+
docker:
42+
- image: node:12
43+
steps:
44+
- test-nodejs
45+
node-v14:
46+
docker:
47+
- image: node:14
48+
steps:
49+
- test-nodejs
50+
51+
workflows:
52+
version: 2
53+
node-multi-build:
54+
jobs:
55+
- node-v10
56+
- node-v12
57+
- node-v14

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)