forked from scipy-lectures/scientific-python-lectures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (43 loc) · 1.77 KB
/
.travis.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
48
49
50
51
language: python
virtualenv:
system_site_packages: true
notifications:
email: false
env:
global:
- TEST_RUN_FOLDER="/tmp" # folder where the tests are run from
matrix:
# Ubuntu 14.04 versions
- DISTRIB="conda" PYTHON_VERSION="$TRAVIS_PYTHON_VERSION"
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"
- DISTRIB="conda" PYTHON_VERSION="3.4"
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"
before_install:
- sudo apt-get install texlive texlive-latex-extra
install:
- source continuous_integration/install.sh
before_script:
- make clean
script:
- python continuous_integration/show-python-packages-versions.py
# We want to back out of the current working directory to make
# sure we are using nilearn installed in site-packages rather
# than the one from the current working directory
# Parentheses (run in a subshell) are used to leave
# the current directory unchanged
- make test
after_success:
# Ignore coveralls failures as the coveralls server is not very reliable
# but we don't want travis to report a failure in the github UI just
# because the coverage report failed to be published.
# coveralls need to be run from the git checkout
# so we need to copy the coverage results from TEST_RUN_FOLDER
- if [[ "$COVERAGE" == "true" ]]; then cp "$TEST_RUN_FOLDER/.coverage" .; coveralls || echo "failed"; fi