forked from scikit-video/scikit-video
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
38 lines (38 loc) · 1.15 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
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:$HOME/.local/lib/python2.7/site-packages"
# PYTHONPATH: '/home/ubuntu/miniconda'
MINICONDA_PATH: $HOME/miniconda
CONDA_ENV_NAME: testenv
dependencies:
cache_directories:
- "~/scikit_video_data"
- "~/scikit-video.github.io"
# Various dependencies
override:
- bash scripts/build_doc.sh
#- 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 scripts/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