forked from scikit-umfpack/scikit-umfpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (40 loc) · 1.06 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
# After changing this file, check it on:
# http://lint.travis-ci.org/
language: python
sudo: false
matrix:
include:
- python: 2.6
- python: 2.7
env: DOCS=1
- python: 3.4
addons:
apt:
packages:
- libatlas-dev
- libatlas-base-dev
- liblapack-dev
- libsuitesparse-dev
- gfortran
- swig
cache:
directories:
- $HOME/.cache/pip
before_install:
- set -o pipefail
- travis_retry pip install --upgrade pip wheel # get pip >= 7, which caches built packages
- travis_retry pip install numpy
# Convert pip output to dots so that Travis doesn't quit while scipy is building
- (pip install -v scipy==0.16.0 2>&1 | tee scipy-build.log | perl -e 'my $start=time(); local $|=1; while (<STDIN>) { if (time() > $start + 5) { print "."; $start=time(); }; }') || { cat scipy-build.log; exit 1; }
- |
if [ "$DOCS" == "1" ]; then
travis_retry pip install Sphinx numpydoc
fi
script:
- python setup.py test
- |
if [ "$DOCS" == "1" ]; then
python setup.py build_sphinx
fi
notifications:
email: false