forked from nansencenter/nansat
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (38 loc) · 1.3 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
language: python
python:
- 2.7
sudo: false
# Setup miniconda
before_install:
- if [[ ! -e $HOME/miniconda/bin ]]; then
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
chmod +x miniconda.sh;
./miniconda.sh -b -f -p $HOME/miniconda;
fi
- export OLD_PATH=$PATH
- export PATH=$HOME/miniconda/bin:$PATH
install:
- conda update -q --yes conda
- conda install -q --yes -c conda-forge qt=4.8.7=0 numpy scipy matplotlib nose pillow basemap netcdf4 gdal
- export GDAL_DATA=/home/vagrant/miniconda/share/gdal/
- export GEOS_DIR=/home/vagrant/miniconda/
- python -c 'import gdal; print gdal.__file__'
- python -c 'from mpl_toolkits.basemap import Basemap'
- pip install coveralls
- pip install cfunits
- python setup.py install
script: #"cd ..; nosetests --with-coverage --cover-package=nansat nansat.tests"
- coverage run --omit=nansat/mappers/*,nansat/tests/* --source=nansat setup.py test
after_success:
- coveralls
# Resetting path so uploading of cache with curl succeeds.
- export PATH=$OLD_PATH
after_failure:
# Resetting path so uploading of cache with curl succeeds.
- export PATH=$OLD_PATH
# before_cache:
# - rm -f $HOME/.cache/pip/log/debug.log
#cache:
# directories:
# - $HOME/.cache/pip
# - $HOME/miniconda