mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-07 00:25:25 +01:00
28 lines
795 B
YAML
28 lines
795 B
YAML
|
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: DOCKER_HOST=localhost npm test
|
||
|
- run: npm run build
|
||
|
- run: ./node_modules/.bin/istanbul report --include /tmp/artifacts/coverage/coverage.json --dir /tmp/artifacts/coverage html lcov
|