forked from johntruckenbrodt/pyroSAR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (55 loc) · 1.6 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
dist: focal
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
- PGUSER=travis
- PGPORT=5433
- PGPASSWORD=Password12!
- SNAP_VERSION=8
addons:
postgresql: '12'
apt:
sources:
- sourceline: 'ppa:ubuntugis/ppa'
packages:
- libgdal-dev
- gdal-bin
- libsqlite3-mod-spatialite
- libproj-dev
- python3-dev
- postgresql-12-postgis-3
services:
- postgresql
python:
- '3.7'
before_install:
- export SNAP_INSTALLER=esa-snap_sentinel_unix_"$SNAP_VERSION"_0.sh
- wget -O $SNAP_INSTALLER https://step.esa.int/downloads/"$SNAP_VERSION".0/installers/"$SNAP_INSTALLER"
- bash $SNAP_INSTALLER -q
- export PATH=$PATH:/opt/snap/bin
install:
- pip install --ignore-installed six certifi # install packages inside the venv if the system version is too old
- pip install numpy
- pip install GDAL==$(gdal-config --version) --global-option=build_ext --global-option="$(gdal-config --cflags)"
- pip install -r requirements-dev.txt
- pip install coveralls coverage
- python setup.py install
#before_script:
# - travis_wait 40 . ./pyroSAR/install/download_testdata.sh
before_script:
- psql -U $PGUSER -c 'create database travis_ci_test'
- psql -U $PGUSER -c "create extension if not exists postgis"
- psql -U $PGUSER -c "alter user ${PGUSER} password '${PGPASSWORD}'"
script:
- coverage run -m pytest
after_success:
- coveralls
notifications:
slack: pyrosar:bs03zodEkRSYr8MN5HrgfSeB