mirror of
https://github.com/maputnik/editor.git
synced 2026-08-25 14:37:27 +00:00
Updated build config for circleci to only test webdriver in one job
This commit is contained in:
+37
-5
@@ -1,6 +1,30 @@
|
|||||||
version: 2
|
version: 2
|
||||||
templates:
|
templates:
|
||||||
steps: &steps
|
# Test the build **only** no webdriver
|
||||||
|
build-steps: &build-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
|
||||||
|
- store_artifacts:
|
||||||
|
path: /tmp/artifacts
|
||||||
|
destination: /artifacts
|
||||||
|
# Test in webdriver
|
||||||
|
wdio-steps: &steps
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
name: "Create artifacts directory"
|
name: "Create artifacts directory"
|
||||||
@@ -31,27 +55,35 @@ jobs:
|
|||||||
- image: node:6
|
- image: node:6
|
||||||
- image: selenium/standalone-chrome:3.8.1
|
- image: selenium/standalone-chrome:3.8.1
|
||||||
working_directory: ~/repo-linux-node-v6
|
working_directory: ~/repo-linux-node-v6
|
||||||
steps: *steps
|
steps: *build-steps
|
||||||
build-linux-node-v8:
|
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.8.1
|
- image: selenium/standalone-chrome:3.8.1
|
||||||
working_directory: ~/repo-linux-node-v8
|
working_directory: ~/repo-linux-node-v8
|
||||||
steps: *steps
|
steps: *wdio-steps
|
||||||
build-linux-node-v9:
|
build-linux-node-v9:
|
||||||
docker:
|
docker:
|
||||||
# specify the version you desire here
|
# specify the version you desire here
|
||||||
- image: node:9
|
- image: node:9
|
||||||
- image: selenium/standalone-chrome:3.8.1
|
- image: selenium/standalone-chrome:3.8.1
|
||||||
working_directory: ~/repo-linux-node-v9
|
working_directory: ~/repo-linux-node-v9
|
||||||
steps: *steps
|
steps: *build-steps
|
||||||
|
build-linux-node-v10:
|
||||||
|
docker:
|
||||||
|
# specify the version you desire here
|
||||||
|
- image: node:10
|
||||||
|
- image: selenium/standalone-chrome:3.8.1
|
||||||
|
working_directory: ~/repo-linux-node-v10
|
||||||
|
steps: *build-steps
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build:
|
build:
|
||||||
jobs:
|
jobs:
|
||||||
- build-linux-node-v8
|
|
||||||
- build-linux-node-v6
|
- build-linux-node-v6
|
||||||
|
- build-linux-node-v8
|
||||||
- build-linux-node-v9
|
- build-linux-node-v9
|
||||||
|
- build-linux-node-v10
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user