forked from nilearn/nilearn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
47 lines (41 loc) · 1.61 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/miniconda2/bin:$PATH
dependencies:
cache_directories:
- "~/nilearn_data"
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:
# Moving to nilearn directory before performing the installation.
- cd ~/nilearn
- source continuous_integration/install.sh:
environment:
DISTRIB: "conda"
PYTHON_VERSION: "3.5"
NUMPY_VERSION: "*"
SCIPY_VERSION: "*"
SCIKIT_LEARN_VERSION: "*"
MATPLOTLIB_VERSION: "*"
- conda install sphinx coverage pillow -y -n testenv
# Generating html documentation (with warnings as errors)
# we need to do this here so the datasets will be cached
- source continuous_integration/circle_ci_test_doc.sh:
timeout: 1500
test:
override:
# override is needed otherwise nosetests is run by default
- echo "Documentation has been built in the 'dependencies' step. No additional test to run"
general:
artifacts:
- "doc/_build/html"
- "coverage"
- "~/log.txt"