Skip to content

Commit

Permalink
update circleci config, replace yarn with npm
Browse files Browse the repository at this point in the history
  • Loading branch information
riophae committed Mar 17, 2018
1 parent bca237a commit fc860a0
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,26 @@ version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:8-browsers

# 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

# Download and cache dependencies
- run: sudo npm install -g npm@latest

- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
key: dependency-cache-{{ checksum "package.json" }}

- run: yarn install
- run: npm install

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
key: dependency-cache-{{ checksum "package.json" }}

# run tests!
- run: yarn test
- run: npm test

- run: ./node_modules/.bin/codecov

Expand Down

0 comments on commit fc860a0

Please sign in to comment.