forked from scikit-learn/scikit-learn
-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
40 lines (40 loc) · 1.3 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
machine:
environment:
# We need to set this variable to let python see the package installed through apt-get
PYTHONPATH: "/usr/lib/python2.7/dist-packages"
dependencies:
cache_directories:
- "~/scikit_learn_data"
- "~/scikit-learn.github.io"
# Various dependencies
pre:
- sudo apt-get update
- sudo apt-get install libatlas-dev libatlas3gf-base
- sudo apt-get install build-essential python-dev python-setuptools
- sudo apt-get install python-numpy python-scipy python-dev python-matplotlib
- sudo apt-get install python-nose python-coverage
- sudo apt-get install python-sphinx
- pip install cython
# The --user is needed to let sphinx see the source and the binaries
# The pipefail is requested to propagate exit code
override:
- python setup.py install --user
- set -o pipefail && cd doc && make html 2>&1 | tee ~/log.txt
test:
# Grep error on the documentation
override:
- cat ~/log.txt && if grep -q "Traceback (most recent call last):" ~/log.txt; then false; else true; fi
deployment:
push:
branch: master
commands:
- bash continuous_integration/push_doc.sh
general:
# Open the doc to the API
artifacts:
- "doc/_build/html"
- "~/log.txt"
# Restric the build to the branch master only
branches:
only:
- master