-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
85 lines (77 loc) · 1.88 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
language: python
sudo: required
addons:
apt:
packages:
# generic packages
- gcc
- gfortran
- libblas-dev
- liblapack-dev
# lal dependencies
- pkg-config
- zlib1g-dev
- libgsl0-dev
- swig
- bc
- fftw-dev
# nds2 dependencies
- libsasl2-2
# misc python dependencies
- libhdf5-serial-dev
virtualenv:
system_site_packages: true
matrix:
include:
- python: 2.7
env: STRICT=false
- python: 3.5
env: STRICT=false
- python: 2.7
env: STRICT=true PRE="--pre"
allow_failures:
- python: 2.7
env: STRICT=true PRE="--pre"
- python: 3.5
env: STRICT=false
fast_finish: true
before_install:
- sudo add-apt-repository ppa:dns/gnu -y
- sudo apt-get update -q
- sudo apt-get install --only-upgrade autoconf
# update pip
- pip install -q ${PRE} --upgrade pip
# build and install numpy first
- pip install -q ${PRE} "numpy>=1.9.1"
# build src packages
- source .travis/setup_environment.sh
# install cython to speed up scipy build
- travis_retry pip install -q ${PRE} --install-option="--no-cython-compile" Cython
# install testing dependencies
- pip install ${PRE} -r requirements_dev.txt
install:
- pip install ${PRE} -r requirements.txt
- python setup.py build
script:
- coverage run setup.py test
# - . .travis/run-tests.sh
- pip install .
after_success:
- coveralls
cache:
apt: true
pip: true
ccache: true
directories:
# cache src builds
- ${VIRTUAL_ENV}/bin
- ${VIRTUAL_ENV}/lib
- ${VIRTUAL_ENV}/opt
- ${VIRTUAL_ENV}/etc
notifications:
webhooks:
urls:
- https://chat.ligo.org/hooks/wknq4kn5c38yurauidajqt8bse
on_success: always#[always|never|change] # default: always
on_failure: always#[always|never|change] # default: always
on_start: always#[always|never|change] # default: never