File tree 2 files changed +16
-3
lines changed
2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 1
1
language : python
2
+
2
3
services :
3
4
- postgresql
5
+
6
+ addons :
7
+ postgresql : " 9.6"
8
+ apt :
9
+ packages :
10
+ - postgresql-9.6-postgis-2.3
11
+
4
12
python :
5
13
- " 2.7"
6
14
- " 3.3"
7
15
- " 3.4"
8
16
- " 3.5"
9
17
- " 3.6"
18
+
10
19
env :
11
20
- DJANGO_VERSION='Django>=1.7,<1.8'
12
21
- DJANGO_VERSION='Django>=1.8,<1.9'
13
22
- DJANGO_VERSION='Django>=1.9,<1.10'
14
23
- DJANGO_VERSION='Django>=1.10,<1.11'
15
24
- DJANGO_VERSION='Django>=1.11,<2.0'
16
25
- DJANGO_VERSION='https://github.com/django/django/archive/master.tar.gz'
26
+
17
27
matrix :
18
28
exclude :
19
29
- python : " 3.5"
@@ -37,13 +47,16 @@ matrix:
37
47
- python : " 3.6"
38
48
env : DJANGO_VERSION='Django>=1.8,<1.9'
39
49
- env : DJANGO_VERSION='https://github.com/django/django/archive/master.tar.gz'
50
+
40
51
install :
41
52
- pip install -q $DJANGO_VERSION
42
53
- pip install -q django-model-utils flake8 psycopg2 six swapper tox tqdm
54
+
43
55
before_script :
44
- - psql -U postgres -c "create extension postgis"
56
+ - psql -U postgres -c "CREATE EXTENSION postgis; "
45
57
- psql -c 'create database django_cities;' -U postgres
46
- - psql -c 'CREATE EXTENSION postgis;' -U postgres -d django_cities
58
+ - psql -U postgres -c 'CREATE EXTENSION postgis;' -d django_cities
59
+
47
60
script :
48
61
- flake8 --ignore=E501
49
62
- PYTHONPATH=. python test_project/manage.py test test_app --noinput
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ def get_locales(self):
286
286
try :
287
287
locales .remove ('LANGUAGES' )
288
288
locales += [e [0 ] for e in django_settings .LANGUAGES ]
289
- except :
289
+ except Exception :
290
290
pass
291
291
292
292
return set ([e .lower () for e in locales ])
You can’t perform that action at this time.
0 commit comments