forked from sphinx-gallery/sphinx-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
46 lines (41 loc) · 1.6 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
34
35
36
37
38
39
40
41
42
43
44
45
46
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)
- sudo apt-get update
- sudo apt-get --no-install-recommends install -y texlive texlive-latex-extra latexmk
- rm -rf ~/.pyenv
- rm -rf ~/virtualenvs
- wget -q https://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
- sphinx-build sphinx_gallery/tests/tinybuild/ tiny_html
- cd sphinx_gallery/tests/tinybuild/ && make latexpdf && cp _build/latex/Python.pdf $CIRCLE_ARTIFACTS
general:
artifacts:
- "doc/_build/html"
- "rtd_html"
- "alabaster_html"
- "tiny_html"
- "sphinx_gallery/"
deployment:
staging:
branch:
- master
commands:
- ./docs_deploy.sh rtd_html