Skip to content

Commit

Permalink
chore: enable circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Hamann committed Nov 24, 2020
1 parent 91e9106 commit 85229df
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 25 deletions.
57 changes: 57 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,57 @@
version: 2.1

commands:
test-nodejs:
steps:
- run:
name: Versions
command: npm version
- checkout
- restore_cache:
keys:
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ arch }}-npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ arch }}-npm-cache-master-{{ .Environment.CIRCLE_JOB }}
- run:
name: Install dependencies
command: npm ci
- run:
name: Test
command: npm test
- coverage
- save-npm-cache
save-npm-cache:
steps:
- save_cache:
key: v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ arch }}-npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}
paths:
- ~/.npm/_cacache
coverage:
steps:
- run:
command: npm run cover
- run:
command: npm run coveralls
jobs:
node-v10:
docker:
- image: node:10
steps:
- test-nodejs
node-v12:
docker:
- image: node:12
steps:
- test-nodejs
node-v14:
docker:
- image: node:14
steps:
- test-nodejs

workflows:
version: 2
node-multi-build:
jobs:
- node-v10
- node-v12
- node-v14
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

0 comments on commit 85229df

Please sign in to comment.