Skip to content

Commit

Permalink
circle: add browser extension JS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Dec 16, 2020
1 parent 90b451c commit fc8536b
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .circleci/config.yml
Expand Up @@ -18,13 +18,18 @@ jobs:
- checkout

- restore_cache:
key: venv-{{ .Branch }}-{{ checksum "requirements.txt" }}
keys:
- venv-npm-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "browser-extension/package.json" }}
- venv-npm-{{ .Branch }}-{{ checksum "requirements.txt" }}
- venv-npm-{{ .Branch }}
- venv-npm
- venv

- run:
name: Base dependencies
command: |
apt-get update
apt-get install -y python3
apt-get install -y python3 npm nodejs
- run:
name: Python 3 dependencies
Expand All @@ -37,6 +42,12 @@ jobs:
pip install mox3
pip install coverage coveralls
- run:
name: JavaScript dependencies
command: |
cd browser-extension
npm install
- run:
name: Test Python 3
command: |
Expand All @@ -48,10 +59,17 @@ jobs:
python -m coverage html -d /tmp/coverage_html
if [ "$COVERALLS_REPO_TOKEN" != "" ]; then coveralls || true; fi
- run:
name: Test JavaScript
command: |
cd browser-extension
npm run test
- save_cache:
key: venv-{{ .Branch }}-{{ checksum "requirements.txt" }}
key: venv-npm-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "browser-extension/package.json" }}
paths:
- "local"
- "browser-extension/node_modules"

- store_artifacts:
path: /tmp/coverage_html

0 comments on commit fc8536b

Please sign in to comment.