forked from nilearn/nistats
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
59 lines (52 loc) · 2.26 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
52
53
54
55
56
57
58
59
language: python
sudo: required
virtualenv:
system_site_packages: true
env:
global:
- TEST_RUN_FOLDER="/tmp" # folder where the tests are run from
matrix:
# Ubuntu 14.04 versions
- DISTRIB="conda" PYTHON_VERSION="2.7"
NUMPY_VERSION="1.8.2" SCIPY_VERSION="0.13.3"
SCIKIT_LEARN_VERSION="0.14.1" MATPLOTLIB_VERSION="1.3.1"
PANDAS_VERSION="0.13.0"
# Ubuntu 14.04 versions without matplotlib
- DISTRIB="conda" PYTHON_VERSION="2.7"
NUMPY_VERSION="1.8.2" SCIPY_VERSION="0.13.3"
SCIKIT_LEARN_VERSION="0.14.1"
PANDAS_VERSION="0.13.0"
- DISTRIB="neurodebian" PYTHON_VERSION="2.7"
# Trying to get as close to the minimum required versions while
# still having the package version available through conda
- DISTRIB="conda" PYTHON_VERSION="2.6"
NUMPY_VERSION="1.6.2" SCIPY_VERSION="0.11.0"
SCIKIT_LEARN_VERSION="0.13" MATPLOTLIB_VERSION="1.1.1"
NIBABEL_VERSION="1.1.0" PANDAS_VERSION="0.12.0"
# Most recent versions
- DISTRIB="conda" PYTHON_VERSION="3.4"
NUMPY_VERSION="*" SCIPY_VERSION="*"
SCIKIT_LEARN_VERSION="*" MATPLOTLIB_VERSION="*" COVERAGE="true"
PANDAS_VERSION="*"
install:
- source continuous_integration/install.sh
before_script:
- make clean
script:
- python continuous_integration/show-python-packages-versions.py
# Copy setup.cfg to TEST_RUN_FOLDER where we are going to run the tests from
# Mainly for nose config settings
- cp setup.cfg "$TEST_RUN_FOLDER"
# 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
- (cd "$TEST_RUN_FOLDER" && make -f $OLDPWD/Makefile test-code)
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