maputnik/.circleci/config.yml

33 lines
944 B
YAML
Raw Normal View History

version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: node:8
- image: selenium/standalone-chrome:3.1.0
working_directory: ~/repo
steps:
- checkout
- run:
name: "Create artifacts directory"
command: mkdir /tmp/artifacts
- restore_cache:
key: v1-dependencies-{{ checksum "package.json" }}
- run: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: mkdir -p /tmp/artifacts/logs
- run: npm run build
2018-01-17 18:55:21 +01:00
- run: npm run lint
- run: npm run lint-styles
- run: DOCKER_HOST=localhost npm test
2018-01-17 18:36:46 +01:00
- run: ./node_modules/.bin/istanbul report --include /tmp/artifacts/coverage/coverage.json --dir /tmp/artifacts/coverage html lcov
2018-01-17 16:44:00 +01:00
- store_artifacts:
path: /tmp/artifacts
2018-01-17 18:43:26 +01:00
destination: /artifacts