From 3c884e8339099d0f10b0d324a280958a0d86fd9b Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Sun, 23 Jun 2019 10:53:39 +0200 Subject: [PATCH] Circle ci integration --- .circleci/config.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..3fb4cf9 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,35 @@ +version: 2 +jobs: + build: + working_directory: ~ + docker: + - image: circleci/node:4.8.2 + steps: + - checkout + - run: + name: update-npm + command: 'sudo npm install -g npm@latest' + - restore_cache: + key: dependency-cache-{{ checksum "package.json" }} + - run: + name: install-npm-wee + command: npm install + - save_cache: + key: dependency-cache-{{ checksum "package.json" }} + paths: + - ./node_modules + - run: + name: test + command: npm test + - run: + name: code-coverage + command: './node_modules/.bin/nyc report --reporter=text-lcov' + - store_artifacts: + path: test-results.xml + prefix: tests + - store_artifacts: + path: coverage + prefix: coverage + - store_test_results: + path: test-results.xml +