-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
44 lines (44 loc) · 1.15 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
language: python
matrix:
include:
- python: 3.6
env: TOXENV="py36--django{2.0,2.1,2.2,3.0,3.1,3.2},syntax"
- python: 3.7
env: TOXENV="py37--django{2.0,2.1,2.2,3.0,3.1,3.2},coverage"
- python: 3.8
env: TOXENV="py38--django{2.0,2.1,2.2,3.0,3.1,3.2}"
- python: 3.9
env: TOXENV="py39--django{2.2,3.0,3.1,3.2}"
services:
- postgresql
before_install:
- sudo add-apt-repository --yes ppa:ubuntugis/ppa
- sudo apt-get --quiet update
- sudo apt-get install --yes libgdal-dev gdal-bin
addons:
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
- postgresql-10-postgis-2.5
- postgis
install:
- pip install tox
- pip install "setuptools<45"
before_script:
- python -c "import setuptools;print('setuptools:', setuptools.__version__)"
- psql -U postgres -c "create extension postgis"
script:
- tox
env:
global:
- DATABASE_USER=postgres
- DATABASE_PASSWORD=
- DATABASE_NAME=test
- DATABASE_HOST=
sudo: false
notifications:
email: false
after_failure:
- cat `find $TRAVIS_BUILD_DIR -name "*.log"`