forked from shapely/shapely
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
108 lines (101 loc) · 2.48 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
language: python
dist: xenial
cache:
directories:
- $HOME/geosinstall
- ~/.cache/pip
matrix:
include:
- python: "3.5"
env:
GEOSVERSION="3.5.2"
SPEEDUPS=1
NUMPY=1
- python: "3.5"
env:
GEOSVERSION="3.5.2"
SPEEDUPS=0
NUMPY=1
- python: "3.5"
env:
GEOSVERSION="3.5.2"
SPEEDUPS=0
NUMPY=0
- python: "3.6"
env:
GEOSVERSION="3.6.4"
SPEEDUPS=1
NUMPY=1
- python: "3.6"
env:
GEOSVERSION="3.6.4"
SPEEDUPS=0
NUMPY=1
- python: "3.6"
env:
GEOSVERSION="3.6.4"
SPEEDUPS=0
NUMPY=0
- python: "3.7"
env:
GEOSVERSION="3.7.3"
SPEEDUPS=1
NUMPY=1
- python: "3.7"
env:
GEOSVERSION="3.7.3"
SPEEDUPS=0
NUMPY=1
- python: "3.7"
env:
GEOSVERSION="3.7.3"
SPEEDUPS=0
NUMPY=0
- python: "3.8"
env:
GEOSVERSION="3.8.1"
SPEEDUPS=1
NUMPY=1
- python: "3.8"
env:
GEOSVERSION="3.8.1"
SPEEDUPS=0
NUMPY=1
- python: "3.8"
env:
GEOSVERSION="3.8.1"
SPEEDUPS=0
NUMPY=0
- python: "3.9-dev"
env:
GEOSVERSION="master"
SPEEDUPS=1
NUMPY=1
allow_failures:
- python: "3.9-dev"
env:
GEOSVERSION="master"
SPEEDUPS=1
NUMPY=1
before_install:
- ./ci/travis/install_geos.sh
- pip install --upgrade pip
# if building with speedups install cython
- if [ "$SPEEDUPS" == "1" ]; then pip install --install-option="--no-cython-compile" cython; fi
# if testing without numpy explicitly remove it
- if [ "$NUMPY" == "0" ]; then pip uninstall --yes numpy; fi
# convert SPEEDUPS to --with-speedups/--without-speedups
- if [ "$SPEEDUPS" == "1" ]; then SPEEDUPS_FLAG=--with-speedups; else SPEEDUPS_FLAG=--without-speedups; fi
- pip install --upgrade coveralls pytest-cov pytest>=3.8
install:
- export GEOS_CONFIG=$HOME/geosinstall/geos-$GEOSVERSION/bin/geos-config
- pip install -v -e .[all]
script:
- export LD_LIBRARY_PATH=$HOME/geosinstall/geos-$GEOSVERSION/lib
- export DYLD_LIBRARY_PATH=$HOME/geosinstall/geos-$GEOSVERSION/lib
- python -c "from shapely.geos import geos_version; print(geos_version)"
- python -m pytest --cov shapely --cov-report term-missing "${SPEEDUPS_FLAG}"
after_success:
- coveralls || echo "!! intermittent coveralls failure"
notifications:
email: false