@@ -6,34 +6,37 @@ services:
66 - postgresql
77
88addons :
9- postgresql : " 9.6"
10- # https://gis.stackexchange.com/a/252610
11- # apt:
12- # packages:
13- # - postgresql-9.6-postgis-2.3
9+ postgresql : " 10"
10+ apt :
11+ packages :
12+ - postgresql-10-postgis-2.4
1413
1514python :
1615 - " 3.6"
1716 - " 3.7"
1817 - " 3.8"
18+ - " 3.9"
19+ - " 3.10"
1920
2021env :
21- - DJANGO_VERSION='Django>=1.11,<1.12'
22+ global :
23+ - PGPORT=5432
24+ - PGUSER=postgres
25+ jobs :
2226 - DJANGO_VERSION='Django>=2.2,<2.3'
23- - DJANGO_VERSION='Django>=3.0,<3.1'
24- - DJANGO_VERSION='https://github.com/django/django/archive/master.tar.gz'
25-
26- matrix :
27- allow_failures :
28- - python : " 3.8"
29- env : DJANGO_VERSION='Django>=1.11,<1.12'
30- - env : DJANGO_VERSION='https://github.com/django/django/archive/master.tar.gz'
31-
32- before_install :
33- # https://gis.stackexchange.com/a/252610
34- - wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
35- - sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" >> /etc/apt/sources.list.d/postgresql.list'
36- - sudo apt-get install --yes postgresql-9.6-postgis-2.4
27+ - DJANGO_VERSION='Django>=3.1,<3.2'
28+ - DJANGO_VERSION='Django>=3.2,<4.0'
29+ - DJANGO_VERSION='Django>=4.0,<4.1'
30+
31+ jobs :
32+ exclude :
33+ - python : " 3.6"
34+ env : DJANGO_VERSION='Django>=4.0,<4.1'
35+ - python : " 3.7"
36+ env : DJANGO_VERSION='Django>=4.0,<4.1'
37+ - python : " 3.10"
38+ env : DJANGO_VERSION='Django>=2.2,<2.3'
39+ env : DJANGO_VERSION='Django>=3.1,<3.2'
3740
3841install :
3942 - pip install $DJANGO_VERSION
0 commit comments