2019-05-15 19:58:06 +02:00
|
|
|
version: 2.1
|
|
|
|
commands:
|
|
|
|
commoncmd:
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- dependency-cache-{{ checksum "package.json" }}
|
2019-05-31 16:48:53 +01:00
|
|
|
- run: yarn install
|
2019-05-15 19:58:06 +02:00
|
|
|
- save_cache:
|
|
|
|
key: dependency-cache-{{ checksum "package.json" }}
|
|
|
|
paths:
|
|
|
|
- ./node_modules
|
2019-05-31 16:48:53 +01:00
|
|
|
- run: yarn run build
|
2019-05-15 19:58:06 +02:00
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
docker:
|
|
|
|
- image: circleci/node:latest
|
|
|
|
steps:
|
2019-05-18 13:35:49 +02:00
|
|
|
- run: sudo apt update
|
|
|
|
- run: sudo apt install -qq shellcheck
|
2019-05-15 19:58:06 +02:00
|
|
|
- commoncmd
|
2019-09-23 07:46:13 +01:00
|
|
|
- run: bash -c 'GLOBIGNORE="node_modules" shellcheck -e2012 **/*.sh'
|
2019-05-31 16:48:53 +01:00
|
|
|
- run: yarn run lint
|
2020-06-17 15:02:37 +01:00
|
|
|
- run: bash -c '"$(yarn bin)/eslint" src --ext .ts'
|
2019-05-15 19:58:06 +02:00
|
|
|
unit:
|
|
|
|
docker:
|
|
|
|
- image: circleci/node:latest
|
|
|
|
steps:
|
|
|
|
- commoncmd
|
2019-05-31 16:48:53 +01:00
|
|
|
- run: bash -c '"$(yarn bin)/jest" src'
|
2020-02-19 11:32:30 +00:00
|
|
|
mozilla:
|
|
|
|
docker:
|
|
|
|
- image: circleci/node:latest
|
|
|
|
steps:
|
|
|
|
- commoncmd
|
2020-02-19 11:41:54 +00:00
|
|
|
- run: bash -c 'cd build; "$(yarn bin)/web-ext" lint'
|
2020-06-04 17:06:19 +01:00
|
|
|
|
2020-06-04 17:35:46 +01:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build_test_lint:
|
|
|
|
jobs:
|
|
|
|
- lint
|
|
|
|
- mozilla
|
|
|
|
- unit
|