mirror of
https://github.com/danbulant/console-hub
synced 2026-05-24 12:35:48 +00:00
Circle ci integration
This commit is contained in:
parent
edf6a9c02f
commit
3c884e8339
1 changed files with 35 additions and 0 deletions
35
.circleci/config.yml
Normal file
35
.circleci/config.yml
Normal file
|
|
@ -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
|
||||||
|
|
||||||
Loading…
Reference in a new issue