forked from jonescompneurolab/hnn-core
/
config.yml
70 lines (59 loc) · 2.11 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# See: https://circleci.com/blog/deploying-documentation-to-github-pages-with-continuous-integration/
version: 2.1
jobs:
build_docs:
docker:
- image: circleci/python:3.8.1-buster
steps:
- checkout
- run:
name: Install miniconda
command: |
sudo apt-get install wget
wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh;
chmod +x ~/miniconda.sh;
~/miniconda.sh -b -p ~/miniconda;
- run:
name: Install openmpi
command: |
sudo apt-get install libopenmpi-dev openmpi-bin
- run:
name: Setup Python environment
command: |
export PATH=~/miniconda/bin:$PATH
conda update --yes --quiet conda
conda create -n testenv --yes pip python=3.6
source activate testenv
conda install --yes scipy numpy matplotlib
pip install mne psutil mpi4py joblib
- run:
name: Setup doc building stuff
command: |
source ~/miniconda/bin/activate testenv
pip install sphinx numpydoc sphinx-gallery sphinx_bootstrap_theme pillow
- run:
name: Setup Neuron
command: |
source ~/miniconda/bin/activate testenv
pip install NEURON
- run:
name: Setup hnn-core
command: |
source ~/miniconda/bin/activate testenv
make
python setup.py develop
- run:
name: Build the documentation
command: |
source ~/miniconda/bin/activate testenv
cd doc/ && make html
- persist_to_workspace:
root: doc/_build
paths: html
- store_artifacts:
path: doc/_build/html/
destination: html
workflows:
build:
jobs:
- build_docs