forked from Suor/django-cacheops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (59 loc) · 1.26 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
dist: bionic
language: python
cache: pip
services:
- redis
- postgresql
- mysql
addons:
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-10-postgis-2.4
- libgdal-dev
python:
- 3.5
- 3.6
- 3.7
- 3.8
- pypy3
env:
- DJANGO=2.1
- DJANGO=2.2
- DJANGO=3.0
matrix:
exclude:
- python: 3.5
env: DJANGO=3.0
include:
- python: 3.7
env: TOXENV=lint
- python: 3.7
env: DJANGO=master
- python: 3.8
env: DJANGO=master
allow_failures:
- python: 3.7
env: DJANGO=master
- python: 3.8
env: DJANGO=master
install:
- pip install tox-travis
before_script:
# check gis
- gdal-config --version
- gdal-config --cflags
- psql -U postgres -c "create extension postgis"
# set up postgresql
- psql -U postgres -c "create role cacheops login superuser"
# postgis django backend requires these to exist
- psql -U postgres -c "create database cacheops"
- psql -U postgres -c "create database cacheops_slave"
# mysql databases
- mysql -u root -e "create user cacheops@localhost"
- mysql -u root -e "grant all on *.* to cacheops@localhost"
- mysql -e "create database cacheops"
- mysql -e "create database cacheops_slave"
script:
- GDAL_VERSION=`gdal-config --version` tox