34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
|
|
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"
|
||
|
|
# 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
|
||
|
|
# 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
|
||
|
|
general:
|
||
|
|
# Open the doc to the API
|
||
|
|
artifacts:
|
||
|
|
- "doc/_build/html"
|
||
|
|
- "~/log.txt"
|
||
|
|
# Restric the build to the branch master only
|
||
|
|
branches:
|
||
|
|
only:
|
||
|
|
- master
|