forked from gwpy/gwsumm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (44 loc) · 1.24 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
language: python
addons:
apt:
packages:
- gcc # nds2
- gfortran # numpy/scipy
- libblas-dev # numpy/scipy
- liblapack-dev # numpy/scipy
- swig # m2crypto
- libhdf5-serial-dev
matrix:
include:
- python: 2.6
- python: 2.7
env: PRE=""
- python: 3.5
- python: nightly
- python: 2.7
env: PRE="--pre"
allow_failures:
- python: 2.6
- python: 3.5
- python: nightly
- python: 2.7
env: PRE="--pre"
fast_finish: true
before_install:
- . .travis/build-src-dependencies.sh
- pip install -q --upgrade pip
- pip install ${PRE} -r requirements.txt
- pip install ${PRE} -q coveralls "pytest>=2.8" pytest-runner unittest2
# need to install astropy 1.1 specifically for py26
- if [[ ${TRAVIS_PYTHON_VERSION} == '2.6' ]]; then pip install "astropy==1.1"; fi
install:
- pip install .
script:
- coverage run --source=gwsumm --omit="gwsumm/tests/*,gwsumm/*version*" ./setup.py test
- coverage run --append --source=gwsumm --omit="gwsumm/tests/*,gwsumm/*version*" `which gw_summary` --help
- coverage run --append --source=gwsumm --omit="gwsumm/tests/*,gwsumm/*version*" `which gw_summary_pipe` --help
after_success:
- coveralls
cache:
apt: true
pip: true