Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
[init] initial addition of circleci (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
yowainwright committed Apr 3, 2018
1 parent e9fe3c5 commit 02ab2bd
Show file tree
Hide file tree
Showing 3 changed files with 172 additions and 5 deletions.
32 changes: 32 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
defaults: &defaults
working_directory: ~/code
docker:
- image: circleci/node:8
environment:
NPM_CONFIG_LOGLEVEL: error # make npm commands less noisy
JOBS: max # https://gist.github.com/ralphtheninja/f7c45bdee00784b41fed

restore_cache_keys: &restore_cache_keys
keys:
- code-{{ .Branch }}-{{ checksum ".nvmrc" }}-{{ checksum "package.json" }}

version: 2
jobs:
test:
<<: *defaults
steps:
- checkout
- restore_cache: *restore_cache_keys
- run: npm install
- save_cache:
key: code-{{ .Branch }}-{{ checksum ".nvmrc" }}-{{ checksum "package.json" }}
paths:
- node_modules
- run: npm run lint
- run: npm run test

workflows:
version: 2
all:
jobs:
- test
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
},
"globals": {
"document": true,
"expect": true,
"window": true
},
"rules": {
Expand Down
144 changes: 139 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 02ab2bd

Please sign in to comment.