Updated CircleCI config

This commit is contained in:
euvl
2017-08-22 11:48:29 +01:00
parent 1fa934e0a1
commit 6e1b9d7aa4
3 changed files with 11 additions and 11 deletions

View File

@@ -2,19 +2,17 @@ version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:7.10
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4
working_directory: ~/repo
steps:
- checkout
- run:
name: update-npm
command: 'sudo npm install -g npm@latest'
# Download and cache dependencies
- restore_cache:
keys:
@@ -22,7 +20,9 @@ jobs:
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: yarn install
- run:
name: install
command: npm install
- save_cache:
paths:
@@ -30,4 +30,6 @@ jobs:
key: v1-dependencies-{{ checksum "package.json" }}
# run tests!
- run: yarn test
- run:
name: test
command: npm run unit