Skip to content

Commit

Permalink
Add CircleCI support. Ref #266. Close #267.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikrose committed Mar 17, 2021
2 parents 8765679 + 137dac0 commit 0f02d75
Show file tree
Hide file tree
Showing 4 changed files with 258 additions and 169 deletions.
52 changes: 52 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
version: 2.1

orbs:
browser-tools: circleci/browser-tools@1.1.1

jobs:
test_js:
docker:
- image: cimg/node:15.3.0-browsers
environment:
MOZ_HEADLESS: 1
steps:
- browser-tools/install-firefox:
version: 86.0.1
- checkout
- run: make -C fathom lint test
# Upload new coveralls stats only on master, which is the only place
# COVERALLS_REPO_TOKEN is defined:
- run:
name: Publish code coverage (if on master)
command: |
if [ ! -z "$COVERALLS_REPO_TOKEN" ]
then
make -C fathom coveralls
fi
test_python:
docker:
- image: cimg/python:3.7.9-node
environment:
MOZ_HEADLESS: 1
steps:
- browser-tools/install-firefox:
version: 86.0.1
- checkout
- run: make -C cli lint test
- run: make docs
# Upload new docs only on master, which is the only place GH_TOKEN is
# defined. This saves time over doing it in a separate job.
- run:
name: Publish docs (if on master)
command: |
if [ ! -z "$GH_TOKEN" ]
then
docs/deploy-docs
fi
workflows:
version: 2
js_python_and_docs:
jobs:
- test_js
- test_python
File renamed without changes.
Loading

0 comments on commit 0f02d75

Please sign in to comment.