forked from spectraphilic/reflexible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (24 loc) · 889 Bytes
/
.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
language: python
python:
- 2.7
install:
# Switch off virtualenv so we can use apt-get for Python packages
- deactivate
# add repo
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3E5C1192
- sudo apt-get update
# install binary deps
- sudo apt-get install python-numpy python-matplotlib cython gfortran
- sudo apt-get install libudunits2-dev libhdf5-serial-dev netcdf-bin libnetcdf-dev
# instal packages in pip
- sudo pip install netCDF4
- sudo pip install -r test_requirements.txt
- python setup.py build_ext --inplace
script:
- py.test reflexible -v --cov reflexible --cov-report term-missing
# reflexible is far from being PEP8 compatible yet, but in the future maybe wise to use the line below...
# - py.test reflexible --pep8 reflexible -v --cov reflexible --cov-report term-missing
after_success:
- coveralls
notifications:
email: false