Skip to content

Commit

Permalink
Setup initial CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jklaise committed Feb 28, 2019
1 parent 4b47063 commit ca6ea1d
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
version: 2

jobs:

test:
docker:
- image: python:3.7
steps:
- checkout
- run:
name: Install dependencies
command: pip install -r requirements.txt
- run:
name: Lint code
command: make lint
- run:
name: Run tests
command: make test

build-docs:
docker:
- image: python:3.7
steps:
- checkout
- run:
name: Install dependencies
command: pip install -r requirements.txt
- run:
name: Build docs
command: cd doc/ && make html
- persist_to_workspace:
root: docs/_build
paths: html

workflows:
version: 2
build:
jobs:
- test
- build-docs
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ install:
test:
python setup.py test

.PHONY: lint
lint:
flake8 .
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pytest==4.2.0
pytest-cov==2.6.1
sphinx==1.8.4
flake8==3.7.7

0 comments on commit ca6ea1d

Please sign in to comment.