ci: test circle v2

This commit is contained in:
Evan You
2018-01-06 17:12:40 -05:00
parent 0496dd86f5
commit 2eaa120863
2 changed files with 29 additions and 15 deletions

29
.circleci/config.yml Normal file
View File

@@ -0,0 +1,29 @@
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: regviz/node-xcb
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "yarn.lock" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: yarn install
- save_cache:
paths:
- node_modules
- ~/.cache/yarn
key: v1-dependencies-{{ checksum "yarn.lock" }}
# run tests!
- run: yarn test

View File

@@ -1,15 +0,0 @@
machine:
node:
version: 8
environment:
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
dependencies:
override:
- yarn
cache_directories:
- ~/.cache/yarn
test:
override:
- yarn test