forked from jneight/django-db-geventpool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (33 loc) · 1.22 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
---
sudo: false
dist: xenial
language: python
cache: pip
services:
- postgresql
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=master, python: '3.6'}
- {env: DJANGO=master, python: '3.7'}
- {env: DJANGO=master, python: '3.8'}
- {env: DJANGO=master, python: 'nightly'}
allow_failures:
- python: 'nightly'
- env: DJANGO=master
install:
- if [[ $DJANGO == 'master' ]]; then travis_retry pip install https://github.com/django/django/archive/master.tar.gz; fi
- if [[ $DJANGO != 'master' ]]; then travis_retry pip install django==$DJANGO; fi
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy'* ]]; then travis_retry pip install psycopg2cffi>=2.7; fi
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then travis_retry pip install psycopg2-binary; fi
- travis_retry pip install gevent
- python setup.py -q install
before_script:
- psql -c 'create database test;' -U postgres
script:
- python -Wall runtests.py