From a4b04312f0ddb92e21ef43b8ce8990a92781a115 Mon Sep 17 00:00:00 2001 From: euvl Date: Tue, 22 Aug 2017 12:14:15 +0100 Subject: [PATCH] Added globals task --- .circleci/config.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index c785c05..4929c03 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,14 +11,21 @@ jobs: # - run: # name: update-npm # command: '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- + - run: name: install command: npm install + + - run: + name: 'globals' + command: npm install karma -g + - save_cache: paths: - node_modules @@ -26,11 +33,14 @@ jobs: test: docker: - image: circleci/node:7.10 + steps: - checkout + - run: name: test command: npm run unit + - store_artifacts: path: test-results.xml prefix: tests