2018-01-05 18:45:55 +01:00
|
|
|
version: 2
|
2018-01-19 18:55:37 +01:00
|
|
|
templates:
|
2018-04-10 14:05:58 +02:00
|
|
|
# Test the build **only** no webdriver
|
|
|
|
build-steps: &build-steps
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: "Create artifacts directory"
|
|
|
|
command: mkdir /tmp/artifacts
|
|
|
|
- restore_cache:
|
2018-05-28 12:34:12 +02:00
|
|
|
key: v1-dependencies-{{ arch }}-{{ checksum "package.json" }}
|
2018-04-10 14:05:58 +02:00
|
|
|
|
|
|
|
- run: npm install
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
paths:
|
|
|
|
- node_modules
|
2018-05-28 12:34:12 +02:00
|
|
|
key: v1-dependencies-{{ arch }}-{{ checksum "package.json" }}
|
2018-04-10 14:05:58 +02:00
|
|
|
|
|
|
|
- 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
|
2018-04-10 14:11:42 +02:00
|
|
|
wdio-steps: &wdio-steps
|
2018-01-19 18:55:37 +01:00
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: "Create artifacts directory"
|
|
|
|
command: mkdir /tmp/artifacts
|
|
|
|
- restore_cache:
|
2018-05-28 12:34:12 +02:00
|
|
|
key: v1-dependencies-{{ arch }}-{{ checksum "package.json" }}
|
2018-01-19 18:55:37 +01:00
|
|
|
|
|
|
|
- run: npm install
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
paths:
|
|
|
|
- node_modules
|
2018-05-28 12:34:12 +02:00
|
|
|
key: v1-dependencies-{{ arch }}-{{ checksum "package.json" }}
|
2018-01-19 18:55:37 +01:00
|
|
|
|
|
|
|
- run: mkdir -p /tmp/artifacts/logs
|
|
|
|
- run: npm run build
|
2019-10-19 13:33:54 +02:00
|
|
|
- run: npm run profiling-build
|
2018-01-19 18:55:37 +01:00
|
|
|
- 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
|
2018-01-05 18:45:55 +01:00
|
|
|
jobs:
|
2018-01-19 18:55:37 +01:00
|
|
|
build-linux-node-v8:
|
2018-01-05 18:45:55 +01:00
|
|
|
docker:
|
|
|
|
- image: node:8
|
2018-01-19 18:55:37 +01:00
|
|
|
working_directory: ~/repo-linux-node-v8
|
2019-06-08 18:34:03 +02:00
|
|
|
steps: *build-steps
|
2018-05-08 18:30:42 +02:00
|
|
|
build-linux-node-v10:
|
2018-01-19 18:55:37 +01:00
|
|
|
docker:
|
2018-05-08 18:30:42 +02:00
|
|
|
- image: node:10
|
2019-06-08 18:34:03 +02:00
|
|
|
- image: selenium/standalone-chrome:3.141.59
|
2018-05-08 18:30:42 +02:00
|
|
|
working_directory: ~/repo-linux-node-v10
|
2019-06-08 18:34:03 +02:00
|
|
|
steps: *wdio-steps
|
2019-05-05 07:47:50 +02:00
|
|
|
build-linux-node-v12:
|
|
|
|
docker:
|
|
|
|
- image: node:12
|
|
|
|
working_directory: ~/repo-linux-node-v12
|
|
|
|
steps: *build-steps
|
2018-05-08 18:30:42 +02:00
|
|
|
build-osx-node-v8:
|
|
|
|
macos:
|
|
|
|
xcode: "9.0"
|
|
|
|
dependencies:
|
|
|
|
override:
|
|
|
|
- brew install node@8
|
2018-05-28 12:19:04 +02:00
|
|
|
working_directory: ~/repo-osx-node-v8
|
2018-04-10 14:29:48 +02:00
|
|
|
steps: *build-steps
|
2018-05-08 18:34:09 +02:00
|
|
|
build-osx-node-v10:
|
2018-04-10 14:29:48 +02:00
|
|
|
macos:
|
|
|
|
xcode: "9.0"
|
|
|
|
dependencies:
|
|
|
|
override:
|
2018-05-08 18:30:42 +02:00
|
|
|
- brew install node@10
|
2018-05-28 12:19:04 +02:00
|
|
|
working_directory: ~/repo-osx-node-v10
|
2018-04-10 14:05:58 +02:00
|
|
|
steps: *build-steps
|
2019-05-05 07:47:50 +02:00
|
|
|
build-osx-node-v12:
|
|
|
|
macos:
|
|
|
|
xcode: "9.0"
|
|
|
|
dependencies:
|
|
|
|
override:
|
|
|
|
- brew install node@12
|
|
|
|
working_directory: ~/repo-osx-node-v12
|
|
|
|
steps: *build-steps
|
2018-01-19 18:35:19 +01:00
|
|
|
|
2018-01-19 18:55:37 +01:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build:
|
|
|
|
jobs:
|
2018-04-10 14:05:58 +02:00
|
|
|
- build-linux-node-v8
|
2018-05-08 18:30:42 +02:00
|
|
|
- build-linux-node-v10
|
2019-05-05 07:47:50 +02:00
|
|
|
- build-linux-node-v12
|
2018-05-08 18:30:42 +02:00
|
|
|
- build-osx-node-v8
|
|
|
|
- build-osx-node-v10
|
2019-05-05 07:47:50 +02:00
|
|
|
- build-osx-node-v12
|