-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
63 lines (53 loc) · 1.19 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
dist: xenial
language: python
env:
global:
- PIP_WHEEL_DIR=$HOME/.cache/pip/wheels
- PIP_FIND_LINKS=file://$HOME/.cache/pip/wheels
- GDALINST=$HOME/gdalinstall
- GDALBUILD=$HOME/gdalbuild
- PROJINST=$HOME/gdalinstall
- PROJBUILD=$HOME/projbuild
jobs:
include:
- python: "3.7"
env:
GDALVERSION="2.4.4"
PROJVERSION="4.9.3"
services:
- postgresql
addons:
apt:
packages:
- devscripts
- libhdf5-serial-dev
- libgdal-dev
- libatlas-dev
- libatlas-base-dev
- gfortran
postgresql: 9.6
apt:
packages:
- postgresql-9.6-postgis-2.3
before_install:
- sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable -y
- sudo apt-get -qq update
- sudo apt-get install gdal-bin libgdal-dev -y
- export CPLUS_INCLUDE_PATH=/usr/include/gdal
- export C_INCLUDE_PATH=/usr/include/gdal
- gdal-config --version
- gdalinfo --version
install:
- pip install .
- pip install gdal==`gdal-config --version`
- pip install -r requirements.txt
- pip install pytest-cov
- pip install coveralls
script:
- python3 tests.py
after_success:
- coveralls
cache:
directories:
- $GDALINST
- ~/.cache/pip