Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CircleCI config #1

Merged
merged 4 commits into from
Feb 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:4.8.2
steps:
- checkout
- run:
name: Update NPM
command: 'sudo npm install -g npm@latest'
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: NPM Install
command: npm install
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- node_modules

test:
docker:
- image: circleci/node:4.8.2
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Test
command: npm test

workflows:
version: 2
build_and_test:
jobs:
- build
- test:
requires:
- build
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
"filter",
"selector"
],
"author": "Tom Shawver <tom@frosteddesign.com>",
"authors": [
"Tom Shawver <tom@frosteddesign.com>",
"Michael Cooper <mcooper@mozilla.com>"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/mozilla/mozjexl/issues"
Expand Down