-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
84 lines (72 loc) · 1.87 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
language: python
env:
# Defaults
global:
- COVERAGE=false
- SLOW=false
- LINT=false
matrix:
include:
- python: 2.7
env:
- TOXENV=py27
- python: 2.7
env:
- TOXENV=py27
- SLOW=true
- LINT=true
- python: 3.5
env:
- TOXENV=py35
- python: 3.6
env:
- TOXENV=py36
- python: 3.6
env:
- TOXENV=py36
- SLOW=true
- LINT=true
#- python: 3.7 # Not Yet Available on Travis
# env:
# - TOXENV=py37
addons:
apt:
packages:
- libatlas-dev
- liblapack-dev
- python-numpy
before_install:
# Skip if commit message contains [skip travis] or [travis skip]
- COMMIT_MESSAGE=$(git show -s $TRAVIS_COMMIT_RANGE | awk 'BEGIN{count=0}{if ($1=="Author:") count++; if (count==1) print $0}')
- if [[ $TRAVIS_PULL_REQUEST == false ]]; then COMMIT_MESSAGE=${TRAVIS_COMMIT_MESSAGE}; fi
- if echo "$COMMIT_MESSAGE" | grep -E '\[(skip travis|travis skip)\]'; then exit 0 ; fi
# Show information about CPU running job to understand BLAS issues
- sudo lshw -class processor
- |
if [ $SLOW = true ]; then
export TEST_ARGS="--only-slow"
else
export TEST_ARGS="--skip-slow"
fi
install:
# Source recipe to install packages
- pip install pytest>=3.6 pytest-xdist pytest-randomly tox codecov matplotlib wheel flake8
- pip install --upgrade pytest
- pip install -r requirements.txt
- python setup.py build_ext --inplace
- python setup.py develop
before_script:
# Fix for headless TravisCI
# https://stackoverflow.com/questions/35403127
- export DISPLAY=":99.0"
- ci/before_script_travis.sh
script:
# Show versions
- python -c 'import numpy as np; print(np.__version__); np.show_config()'
- python -c 'import scipy; print(scipy.__version__); scipy.show_config()'
- pytest sm2 $TEST_ARGS
- ci/lint.sh
notifications:
email: false
after_success:
- codecov