Build with CircleCI

This commit is contained in:
Tim Schaub
2018-11-04 21:40:05 -07:00
parent e55cca1e7d
commit aeb3e5b271

36
.circleci/config.yml Normal file
View File

@@ -0,0 +1,36 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:10-browsers
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run:
name: Install Dependencies
command: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run:
name: Run Tests
command: npm test
- run:
name: Build Examples
command: npm run build-examples
- store_artifacts:
path: build/examples
destination: examples