forked from wagtail/wagtail-localize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (37 loc) · 940 Bytes
/
.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
language: python
cache: pip
addons:
postgresql: "11.2"
services:
- postgresql
env:
global:
- PGPORT=5433
matrix:
include:
- env: TOXENV=py37-dj22-wai18n-postgres
python: 3.7
- env: TOXENV=py38-dj22-wai18n-postgres
python: 3.8
- env: TOXENV=py38-dj22-wai18n-sqlite
python: 3.8
- env: TOXENV=py38-dj30-wai18n-postgres
python: 3.8
- env: TOXENV=py38-dj30-wai18n-sqlite
python: 3.8
- env: TOXENV=py38-dj30-wamaster-postgres
python: 3.8
allow_failures:
- env: TOXENV=py38-dj30-wamaster-postgres
before_install:
- sudo apt-get update
- sudo apt-get --yes remove postgresql\*
- sudo apt-get install -y postgresql-11 postgresql-client-11
- sudo cp /etc/postgresql/{9.6,11}/main/pg_hba.conf
- sudo service postgresql restart 11
install:
- pip install tox
before_script:
- psql -c 'CREATE ROLE travis SUPERUSER LOGIN CREATEDB;' -U postgres
script:
- tox