-
Notifications
You must be signed in to change notification settings - Fork 374
/
.travis.yml
52 lines (43 loc) · 1.05 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
50
51
52
dist: bionic
language: python
services:
- postgresql
addons:
postgresql: "10"
apt:
packages:
- postgresql-10-postgis-2.4
python:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
env:
global:
- PGPORT=5432
- PGUSER=postgres
jobs:
- DJANGO_VERSION='Django>=2.2,<2.3'
- DJANGO_VERSION='Django>=3.1,<3.2'
- DJANGO_VERSION='Django>=3.2,<4.0'
- DJANGO_VERSION='Django>=4.0,<4.1'
jobs:
exclude:
- python: "3.6"
env: DJANGO_VERSION='Django>=4.0,<4.1'
- python: "3.7"
env: DJANGO_VERSION='Django>=4.0,<4.1'
- python: "3.10"
env: DJANGO_VERSION='Django>=2.2,<2.3'
env: DJANGO_VERSION='Django>=3.1,<3.2'
install:
- pip install $DJANGO_VERSION
- pip install -q django-model-utils flake8 psycopg2 six swapper tox tqdm
before_script:
# - psql -U postgres -c "CREATE EXTENSION postgis;"
- psql -c 'create database django_cities;' -U postgres
- psql -U postgres -c 'CREATE EXTENSION postgis;' -d django_cities
script:
- flake8
- PYTHONPATH=. python test_project/manage.py test test_app --noinput