11---
22sudo : false
3- dist : xenial
3+ dist : focal
44language : python
55cache : pip
66
7- services :
8- - postgresql
7+ addons :
8+ postgresql : ' 12'
9+ apt :
10+ packages :
11+ - postgresql-12
912
1013matrix :
1114 include :
1215 # https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
13- - {env: DJANGO=3.1.2, python: '3.6'}
14- - {env: DJANGO=3.1.2, python: '3.7'}
15- - {env: DJANGO=3.1.2, python: '3.8'}
16- - {env: DJANGO=3.1.2, python: 'nightly'}
17- - {env: DJANGO=3.1.2, python: 'pypy3'}
16+ - {env: DJANGO=3.2.13, python: '3.6'}
17+ - {env: DJANGO=3.2.13, python: '3.7'}
18+ - {env: DJANGO=3.2.13, python: '3.8'}
19+ - {env: DJANGO=3.2.13, python: '3.9'}
20+ - {env: DJANGO=3.2.13, python: '3.10'}
21+ - {env: DJANGO=3.2.13, python: 'nightly'}
22+ - {env: DJANGO=3.2.13, python: 'pypy3'}
23+ - {env: DJANGO=4.0.4, python: '3.9'}
24+ - {env: DJANGO=4.0.4, python: '3.10'}
25+ - {env: DJANGO=4.0.4, python: 'nightly'}
1826
1927 - {env: DJANGO=master, python: '3.6'}
2028 - {env: DJANGO=master, python: '3.7'}
2129 - {env: DJANGO=master, python: '3.8'}
30+ - {env: DJANGO=master, python: '3.9'}
31+ - {env: DJANGO=master, python: '3.10'}
2232 - {env: DJANGO=master, python: 'nightly'}
2333
2434 allow_failures :
@@ -33,7 +43,11 @@ install:
3343 - travis_retry pip install gevent
3444 - python setup.py -q install
3545
36- before_script :
46+ before_install :
47+ - sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf
48+ - sudo service postgresql restart
49+ - sleep 1
50+ - postgres --version
3751 - psql -c 'create database test;' -U postgres
3852
3953script :
0 commit comments