forked from sphinx-gallery/sphinx-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
33 lines (29 loc) · 1.19 KB
/
circle.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
machine:
environment:
# We need to set this variable to let Anaconda take precedence
PATH: "/home/ubuntu/miniconda/envs/circleenv/bin:/home/ubuntu/miniconda/bin:$PATH"
dependencies:
pre:
# Disable pyenv (no cleaner way provided by CircleCI as it prepends pyenv version to PATH)
- rm -rf ~/.pyenv
- rm -rf ~/virtualenvs
- wget -q http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O ~/miniconda.sh
- chmod +x ~/miniconda.sh
- ~/miniconda.sh -b -p /home/ubuntu/miniconda
- conda update --yes --quiet conda
- conda create -n circleenv --yes pip python=2.7
- sed -i "s/ENABLE_USER_SITE = .*/ENABLE_USER_SITE = False/g" /home/ubuntu/miniconda/envs/circleenv/lib/python2.7/site.py
- conda install -n circleenv --yes numpy scipy seaborn mayavi setuptools matplotlib pillow sphinx pytest pytest-cov sphinx_rtd_theme
- pip install -r requirements.txt
override:
- python setup.py develop
test:
override:
- python setup.py build_sphinx
- SPHX_GLR_THEME=rtd sphinx-build doc rtd_html
- SPHX_GLR_THEME=alabaster sphinx-build doc alabaster_html
general:
artifacts:
- "doc/_build/html"
- "rtd_html"
- "alabaster_html"