Skip to content

Commit

Permalink
Merge pull request #65 from jneight/release_4.0.1
Browse files Browse the repository at this point in the history
Update travis config
  • Loading branch information
jneight authored May 10, 2022
2 parents 6fdb293 + 9c922e6 commit 5e7409c
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,34 @@
---
sudo: false
dist: xenial
dist: focal
language: python
cache: pip

services:
- postgresql
addons:
postgresql: '12'
apt:
packages:
- postgresql-12

matrix:
include:
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
- {env: DJANGO=3.1.2, python: '3.6'}
- {env: DJANGO=3.1.2, python: '3.7'}
- {env: DJANGO=3.1.2, python: '3.8'}
- {env: DJANGO=3.1.2, python: 'nightly'}
- {env: DJANGO=3.1.2, python: 'pypy3'}
- {env: DJANGO=3.2.13, python: '3.6'}
- {env: DJANGO=3.2.13, python: '3.7'}
- {env: DJANGO=3.2.13, python: '3.8'}
- {env: DJANGO=3.2.13, python: '3.9'}
- {env: DJANGO=3.2.13, python: '3.10'}
- {env: DJANGO=3.2.13, python: 'nightly'}
- {env: DJANGO=3.2.13, python: 'pypy3'}
- {env: DJANGO=4.0.4, python: '3.9'}
- {env: DJANGO=4.0.4, python: '3.10'}
- {env: DJANGO=4.0.4, python: 'nightly'}

- {env: DJANGO=master, python: '3.6'}
- {env: DJANGO=master, python: '3.7'}
- {env: DJANGO=master, python: '3.8'}
- {env: DJANGO=master, python: '3.9'}
- {env: DJANGO=master, python: '3.10'}
- {env: DJANGO=master, python: 'nightly'}

allow_failures:
Expand All @@ -33,7 +43,11 @@ install:
- travis_retry pip install gevent
- python setup.py -q install

before_script:
before_install:
- sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf
- sudo service postgresql restart
- sleep 1
- postgres --version
- psql -c 'create database test;' -U postgres

script:
Expand Down

0 comments on commit 5e7409c

Please sign in to comment.