Skip to content

Commit fe6ddb8

Browse files
authored
Travis: use Ubuntu Xenial (#694)
* tests: mysql: use default_storage_engine * Travis: update pypy/pypy3 versions Ref: https://travis-ci.community/t/pypy-2-7-on-xenial/889/4
1 parent bb8359f commit fe6ddb8

File tree

3 files changed

+21
-16
lines changed

3 files changed

+21
-16
lines changed

.travis.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,60 @@
1-
sudo: false
21
language: python
3-
dist: trusty
2+
dist: xenial
43

54
jobs:
65
fast_finish: true
76
include:
87
- stage: baseline
98
python: 3.6
109
env: TOXENV=py36-dj20-postgres-coverage
10+
services:
11+
- postgresql
1112
- python: 3.6
1213
env: TOXENV=py36-dj111-sqlite-coverage
1314
- python: 2.7
1415
env: TOXENV=py27-dj111-mysql_innodb-coverage
16+
services:
17+
- mysql
1518
- python: 3.6
1619
env: TOXENV=checkqa,docs
1720

1821
- stage: test
19-
# py37 is not available in trusty dist, and requires sudo=true with xenial.
2022
python: 3.7
2123
env: TOXENV=py37-dj21-sqlite-coverage
22-
dist: xenial
23-
sudo: true
24-
2524
- python: 3.7
2625
env: TOXENV=py37-dj22-sqlite-coverage
27-
dist: xenial
28-
sudo: true
2926

3027
- python: 3.6
3128
env: TOXENV=py36-djmaster-sqlite-coverage
3229

3330
- python: 3.5
3431
env: TOXENV=py35-dj110-postgres-coverage
32+
services:
33+
- postgresql
3534

3635
- python: 3.4
3736
env: TOXENV=py34-dj19-sqlite_file-coverage
3837

3938
- python: 2.7
4039
env: TOXENV=py27-dj111-mysql_myisam-coverage
40+
services:
41+
- mysql
4142
- python: 2.7
4243
env: TOXENV=py27-dj18-postgres-coverage
44+
services:
45+
- postgresql
4346

4447
# pypy/pypy3: not included with coverage reports (much slower then).
45-
- python: pypy
48+
- python: pypy2.7-6.0
4649
env: TOXENV=pypy-dj111-sqlite_file
47-
- python: pypy3
50+
- python: pypy3.5-6.0
4851
env: TOXENV=pypy3-dj110-sqlite
4952

5053
- stage: test_release
5154
python: 3.6
5255
env: TOXENV=py36-dj20-postgres
56+
services:
57+
- postgresql
5358

5459
- stage: release
5560
script: skip
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
from .settings_base import * # noqa
1+
from .settings_base import * # noqa: F403
22

33
DATABASES = {
44
"default": {
55
"ENGINE": "django.db.backends.mysql",
6-
"NAME": "pytest_django" + db_suffix, # noqa
6+
"NAME": "pytest_django" + db_suffix, # noqa: F405
77
"HOST": "localhost",
88
"USER": "root",
9-
"OPTIONS": {"init_command": "SET storage_engine=InnoDB"},
9+
"OPTIONS": {"init_command": "SET default_storage_engine=InnoDB"},
1010
}
1111
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
from pytest_django_test.settings_base import * # noqa
1+
from pytest_django_test.settings_base import * # noqa: F403
22

33
DATABASES = {
44
"default": {
55
"ENGINE": "django.db.backends.mysql",
6-
"NAME": "pytest_django" + db_suffix, # noqa
6+
"NAME": "pytest_django" + db_suffix, # noqa: F405
77
"HOST": "localhost",
88
"USER": "root",
9-
"OPTIONS": {"init_command": "SET storage_engine=MyISAM"},
9+
"OPTIONS": {"init_command": "SET default_storage_engine=MyISAM"},
1010
}
1111
}

0 commit comments

Comments
 (0)