forked from Suor/django-cacheops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (66 loc) · 1.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
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.6
- 3.7
- 3.8
- 3.9
- pypy3
env:
- DJANGO=3.0
- DJANGO=3.1
- DJANGO=3.2
matrix:
exclude:
- python: 3.6
env: DJANGO=3.2
include:
- python: 3.8
env: TOXENV=lint
- python: 3.8
env: DJANGO=2.1
- python: 3.8
env: DJANGO=2.2
- python: 3.8
env: DJANGO=master
- python: 3.9
env: DJANGO=master
allow_failures:
- python: pypy3 # This one works for me locally but fails with a weird error on Travis
env: DJANGO=3.2
- python: 3.8
env: DJANGO=master
- python: 3.9
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
- tox