mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 19:41:18 +01:00
Added yaml inheritance to .circleci/config.yml
This commit is contained in:
parent
cb4f5ea963
commit
e0ff342702
1 changed files with 27 additions and 25 deletions
|
@ -1,32 +1,34 @@
|
||||||
version: 2
|
version: 2
|
||||||
|
templates:
|
||||||
|
steps: &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
|
||||||
|
- run: npm run lint
|
||||||
|
- run: npm run lint-styles
|
||||||
|
- run: DOCKER_HOST=localhost npm test
|
||||||
|
- run: ./node_modules/.bin/istanbul report --include /tmp/artifacts/coverage/coverage.json --dir /tmp/artifacts/coverage html lcov
|
||||||
|
- store_artifacts:
|
||||||
|
path: /tmp/artifacts
|
||||||
|
destination: /artifacts
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-linux-node-v8:
|
||||||
docker:
|
docker:
|
||||||
# specify the version you desire here
|
# specify the version you desire here
|
||||||
- image: node:8
|
- image: node:8
|
||||||
- image: selenium/standalone-chrome:3.1.0
|
- image: selenium/standalone-chrome:3.1.0
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
steps:
|
steps: *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
|
|
||||||
- run: npm run lint
|
|
||||||
- run: npm run lint-styles
|
|
||||||
- run: DOCKER_HOST=localhost npm test
|
|
||||||
- run: ./node_modules/.bin/istanbul report --include /tmp/artifacts/coverage/coverage.json --dir /tmp/artifacts/coverage html lcov
|
|
||||||
- store_artifacts:
|
|
||||||
path: /tmp/artifacts
|
|
||||||
destination: /artifacts
|
|
||||||
|
|
Loading…
Reference in a new issue