Added globals task

This commit is contained in:
euvl
2017-08-22 12:14:15 +01:00
parent 9f857ea80b
commit a4b04312f0

View File

@@ -11,14 +11,21 @@ jobs:
# - run: # - run:
# name: update-npm # name: update-npm
# command: 'sudo npm install -g npm@latest' # command: 'sudo npm install -g npm@latest'
- restore_cache: - restore_cache:
keys: keys:
- v1-dependencies-{{ checksum "package.json" }} - v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found # fallback to using the latest cache if no exact match is found
- v1-dependencies- - v1-dependencies-
- run: - run:
name: install name: install
command: npm install command: npm install
- run:
name: 'globals'
command: npm install karma -g
- save_cache: - save_cache:
paths: paths:
- node_modules - node_modules
@@ -26,11 +33,14 @@ jobs:
test: test:
docker: docker:
- image: circleci/node:7.10 - image: circleci/node:7.10
steps: steps:
- checkout - checkout
- run: - run:
name: test name: test
command: npm run unit command: npm run unit
- store_artifacts: - store_artifacts:
path: test-results.xml path: test-results.xml
prefix: tests prefix: tests