forked from johntruckenbrodt/pyroSAR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (49 loc) · 1.45 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
dist: xenial
language: python
sudo: required
cache:
directories:
- ~/.cache/pip
env:
global:
- PIP_WHEEL_DIR=$HOME/.cache/pip/wheels
- PIP_FIND_LINKS=file://$HOME/.cache/pip/wheels
- TESTDATA_DIR=$HOME/testdata
addons:
apt:
sources:
- sourceline: 'ppa:ubuntugis/ppa'
packages:
- libgdal-dev
- libudunits2-dev
- python-gdal
- python3-gdal
- libspatialite-dev
- libsqlite3-mod-spatialite
- swig2.0
- libproj-dev
- gdal-bin
# currently 3.5 is the only version that works together with system site apt_packages:
# this might change in the future; an alternative could be to install the GDAL python bindings
# directly in the venv; see e.g. here: https://gist.github.com/cspanring/5680334
python:
- '3.5'
virtualenv:
system_site_packages: true
before_install:
- wget -O esa-snap_sentinel_unix_6_0.sh https://step.esa.int/downloads/6.0/installers/esa-snap_sentinel_unix_6_0.sh
- bash esa-snap_sentinel_unix_6_0.sh -q
- export PATH=$PATH:/opt/snap/bin
install:
- pip install --ignore-installed six # install six inside the venv since the system version is too old
- pip install -r requirements-dev.txt
- pip install coveralls coverage
- python setup.py install
#before_script:
# - travis_wait 40 . ./pyroSAR/install/download_testdata.sh
script:
- coverage run --source pyroSAR/ -m pytest
after_success:
- coveralls
notifications:
slack: pyrosar:bs03zodEkRSYr8MN5HrgfSeB