forked from rasterio/rasterio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
91 lines (82 loc) · 2.38 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
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.6"
env:
GDALVERSION="2.3.3"
PROJVERSION="4.9.3"
- python: "3.6"
env:
GDALVERSION="2.4.4"
PROJVERSION="4.9.3"
- python: "3.7"
env:
GDALVERSION="2.4.4"
PROJVERSION="4.9.3"
- python: "3.8"
env:
GDALVERSION="2.4.4"
PROJVERSION="4.9.3"
- python: "3.6"
env:
GDALVERSION="3.0.4"
PROJVERSION="6.2.1"
- python: "3.7"
env:
GDALVERSION="3.0.4"
PROJVERSION="6.2.1"
- python: "3.8"
env:
GDALVERSION="3.0.4"
PROJVERSION="6.2.1"
- python: "3.8"
env:
GDALVERSION="master"
PROJVERSION="6.2.1"
allow_failures:
- env:
GDALVERSION="master"
PROJVERSION="6.2.1"
addons:
apt:
packages:
- libhdf5-serial-dev
- libgdal-dev
- libatlas-dev
- libatlas-base-dev
- gfortran
before_install:
- python -m pip install -U pip
- python -m pip install wheel
- export PATH=$GDALINST/gdal-$GDALVERSION/bin:$PATH
- export LD_LIBRARY_PATH=$GDALINST/gdal-$GDALVERSION/lib:$LD_LIBRARY_PATH
- . ./scripts/travis_proj_install.sh
- travis_wait 20 . ./scripts/travis_gdal_install.sh
- export GDAL_DATA=$GDALINST/gdal-$GDALVERSION/share/gdal
- export PROJ_LIB=$GDALINST/gdal-$GDALVERSION/share/proj
install:
- "if [ \"$GDALVERSION\" == \"master\" -o $(gdal-config --version) == \"$GDALVERSION\" ]; then echo \"Using gdal $GDALVERSION\"; else echo \"NOT using gdal $GDALVERSION as expected; aborting\"; exit 1; fi"
- "python -m pip wheel -r requirements-dev.txt"
- "python -m pip install -r requirements-dev.txt"
- "GDAL_CONFIG=$GDALINST/gdal-$GDALVERSION/bin/gdal-config python -m pip install --upgrade --force-reinstall --no-use-pep517 -e .[test,plot]"
- "python -m pip install coveralls>=1.1"
- "rio --version"
- "rio --gdal-version"
- "python -m pip list"
script:
- python -m pytest -v -m "not wheel" -rxXs --cov rasterio --cov-report term-missing
after_success:
- coveralls || echo "!! intermittent coveralls failure"
cache:
directories:
- $GDALINST
- ~/.cache/pip