Skip to content

Commit b40bad4

Browse files
committed
MAINT: Add CircleCI
1 parent c2e8b8f commit b40bad4

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.circleci/config.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
version: 2
2+
jobs:
3+
build_docs:
4+
docker:
5+
- image: circleci/python:3.7-stretch
6+
steps:
7+
- checkout
8+
- run:
9+
name: Set BASH_ENV
10+
command: |
11+
echo "set -e" >> $BASH_ENV;
12+
echo "export PATH=~/.local/bin:$PATH" >> $BASH_ENV;
13+
- restore_cache:
14+
keys:
15+
- pip-cache
16+
- run:
17+
name: Get dependencies and install
18+
command: |
19+
pip install --user -q --upgrade pip setuptools
20+
pip install --user -q --upgrade numpy matplotlib sphinx
21+
pip install --user -e .
22+
- save_cache:
23+
key: pip-cache
24+
paths:
25+
- ~/.cache/pip
26+
- run:
27+
name: make html
28+
command: |
29+
cd doc
30+
make html
31+
- store_artifacts:
32+
path: doc/_build/html/
33+
destination: html
34+
35+
workflows:
36+
version: 2
37+
38+
default:
39+
jobs:
40+
- build_docs

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@
66
*.egg-info
77
*.swp
88
*.swo
9+
.pytest_cache
10+
doc/_build
911
build
1012
dist

0 commit comments

Comments
 (0)