forked from scipy/scipy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
120 lines (120 loc) · 3.53 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# After changing this file, check it on:
# http://lint.travis-ci.org/
language: python
sudo: false
matrix:
include:
- python: 2.7
env:
- PYFLAKES=1
- PEP8=1
- NUMPYSPEC=numpy
before_install:
- pip install pep8==1.5.1
- pip install pyflakes
script:
- PYFLAKES_NODOCTEST=1 pyflakes scipy benchmarks/benchmarks | grep -E -v 'unable to detect undefined names|assigned to but never used|imported but unused|redefinition of unused' > test.out; cat test.out; test \! -s test.out
- pep8 scipy benchmarks/benchmarks
- python: 2.7
env:
- TESTMODE=fast
- REFGUIDE_CHECK=1
- COVERAGE=
- NPY_RELAXED_STRIDES_CHECKING=1
- NUMPYSPEC="--upgrade git+git://github.com/numpy/[email protected]"
addons:
apt:
packages:
- libatlas-dev
- libatlas-base-dev
- liblapack-dev
- gfortran
- libgmp-dev
- libmpfr-dev
- ccache
- libfreetype6-dev
- libpng-dev
- zlib1g-dev
- texlive-fonts-recommended
- python: 3.4
env:
- TESTMODE=fast
- COVERAGE=
- NUMPYSPEC=numpy
- python: 3.3
env:
- TESTMODE=fast
- COVERAGE=
- NUMPYSPEC=numpy
- python: 3.2
env:
- TESTMODE=fast
- COVERAGE=
- NUMPYSPEC=numpy
- python: 2.7
env:
- TESTMODE=full
- COVERAGE=--coverage
- NUMPYSPEC=numpy
- python: 2.6
env:
- TESTMODE=fast
- OPTIMIZE=-OO
- NUMPYSPEC="numpy==1.6.2"
addons:
apt:
packages:
- libatlas-dev
- libatlas-base-dev
- liblapack-dev
- gfortran
- libgmp-dev
- libmpfr-dev
- ccache
cache:
directories:
- $HOME/.ccache
before_install:
- export PATH=/usr/lib/ccache:$PATH
- uname -a
- free -m
- df -h
- ulimit -a
- mkdir builds
- pushd builds
# Install gmpy2 dependencies
- mkdir -p $HOME/.local
- wget ftp://ftp.gnu.org/gnu/mpc/mpc-1.0.2.tar.gz
- tar xzvf mpc-1.0.2.tar.gz
- pushd mpc-1.0.2
- ./configure --prefix=$HOME/.local
- make
- make install
- popd
- export CPATH=$HOME/.local/include
- export LIBRARY_PATH=$HOME/.local/lib
# End install gmpy2 dependencies
# Speed up install by not compiling Cython
- travis_retry pip install --install-option="--no-cython-compile" Cython==0.22
- travis_retry pip install $NUMPYSPEC
- travis_retry pip install nose mpmath argparse Pillow
- travis_retry pip install gmpy2 # speeds up mpmath (scipy.special tests)
- if [ "${TESTMODE}" == "full" ]; then pip install coverage; fi
- |
if [ "${REFGUIDE_CHECK}" == "1" ]; then
travis_retry pip install matplotlib Sphinx
fi
- python -V
- popd
- set -o pipefail
script:
- python -c 'import numpy as np; print("relaxed strides checking:", np.ones((10,1),order="C").flags.f_contiguous)'
# Make sure that relaxed strides checking is actually in effect; otherwise fail loudly
- if [ "$NPY_RELAXED_STRIDES_CHECKING" = "1" ]; then python -c'import numpy as np; assert np.ones((10,1),order="C").flags.f_contiguous'; fi
- python -u $OPTIMIZE runtests.py -g -m $TESTMODE $COVERAGE |& tee runtests.log
- tools/validate_runtests_log.py $TESTMODE < runtests.log
- if [ "${REFGUIDE_CHECK}" == "1" ]; then python runtests.py --refguide-check; fi
notifications:
# Perhaps we should have status emails sent to the mailing list, but
# let's wait to see what people think before turning that on.
email: false