forked from Suor/django-cacheops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (49 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
45
46
47
48
49
language: python
python: 3.5
sudo: false
cache: pip
services:
- redis-server
addons:
postgresql: "9.3"
env:
- TOXENV=lint
- TOXENV=py27-dj17
- TOXENV=py27-dj18
- TOXENV=py27-dj19
- TOXENV=py27-dj110
- TOXENV=py27-djmaster
- TOXENV=py33-dj17
- TOXENV=py33-dj18
- TOXENV=py34-dj17
- TOXENV=py34-dj18
- TOXENV=py34-dj19
- TOXENV=py34-dj110
- TOXENV=py34-djmaster
- TOXENV=py35-dj18
- TOXENV=py35-dj19
- TOXENV=py35-dj110
- TOXENV=py35-djmaster
- TOXENV=pypy-dj17
- TOXENV=pypy-dj18
- TOXENV=pypy-dj19
- TOXENV=pypy-dj110
matrix:
allow_failures:
- env: "TOXENV=py27-djmaster"
- env: "TOXENV=py34-djmaster"
- env: "TOXENV=py35-djmaster"
install:
- pip install tox
before_script:
- 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 -e "create user cacheops"
- mysql -u root -e "grant all on *.* to 'cacheops'@'localhost'"
- mysql -e "create database cacheops"
- mysql -e "create database cacheops_slave"
script:
- tox