Skip to content

Commit 0ec9e22

Browse files
authored
Merge pull request #208 from larsoner/circle
MAINT: Add CircleCI
2 parents 30d8843 + 6942480 commit 0ec9e22

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.circleci/config.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
git submodule init
23+
git submodule update
24+
- save_cache:
25+
key: pip-cache
26+
paths:
27+
- ~/.cache/pip
28+
- run:
29+
name: make html
30+
command: |
31+
cd doc
32+
make html
33+
- store_artifacts:
34+
path: doc/_build/html/
35+
destination: html
36+
37+
workflows:
38+
version: 2
39+
40+
default:
41+
jobs:
42+
- build_docs

.gitignore

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

0 commit comments

Comments
 (0)