forked from scipy-lectures/scientific-python-lectures
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
47 lines (43 loc) · 1.83 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
47
machine:
environment:
PATH: /home/ubuntu/miniconda/bin:$PATH
dependencies:
pre:
# Get rid of existing virtualenvs on circle ci as they conflict with conda.
# Trick found here:
# https://discuss.circleci.com/t/disable-autodetection-of-project-or-application-of-python-venv/235/10
- cd && rm -rf ~/.pyenv && rm -rf ~/virtualenvs
# We need to remove conflicting texlive packages.
- sudo -E apt-get -yq remove texlive-binaries --purge
# Installing required packages for `make -C doc check command` to work.
- sudo -E apt-get -yq update
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install dvipng texlive-latex-base texlive-latex-extra
override:
- cd ~/scipy-lecture-notes
- source continuous_integration/install.sh:
environment:
DISTRIB: "conda"
PYTHON_VERSION: "2.7"
NUMPY_VERSION: "1.9"
SCIPY_VERSION: "0.14.0"
SCIKIT_LEARN_VERSION: "0.16.1"
MATPLOTLIB_VERSION: "1.4.0"
SCIKIT_IMAGE_VERSION: "0.10.1"
SYMPY_VERSION: "0.7.5"
STATSMODELS_VERSION: "0.5"
SEABORN_VERSION: "0.6"
PANDAS_VERSION: "0.15"
- conda install sphinx coverage pillow -y -n testenv --quiet
- source activate testenv && pip install sphinx-gallery
- source activate testenv && python continuous_integration/show-python-packages-versions.py
test:
override:
# Tests are disabled for now because they trigger errors that are not understood
# - make clean test
- source continuous_integration/circle_ci_test_doc.sh
# workaround - make html returns 0 even if examples fail to build
- cat ~/log.txt && if grep -q "Traceback (most recent call last):" ~/log.txt; then false; else true; fi
general:
artifacts:
- "build/html"
- "~/log.txt"