Skip to content

Commit

Permalink
Use docker to run mysql8 and test 3.7 with it.
Browse files Browse the repository at this point in the history
This needs a client configuration so that we can force TCP sockets
instead of the unix socket, which isn't available from the docker
container.
  • Loading branch information
jamadden committed May 22, 2019
1 parent 74864f6 commit 255a2f9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
26 changes: 18 additions & 8 deletions .travis.yml
@@ -1,14 +1,6 @@
language: python
dist: xenial
group: travis_latest
python:
- 2.7
- 3.5
- 3.6
- 3.7
- pypy
- pypy3

services:
- mysql
- postgresql
Expand All @@ -19,7 +11,24 @@ addons:
# Use postgresql 9.5 to get support for INSERT ON CONFLICT UPDATE
# Use postgresql 9.6 ... just because
postgresql: "9.6"
# The default mysql is 5.7; we have a specific test for 8.0.

matrix:
include:
- python: 2.7
- python: 3.5
- python: 3.6
- python: pypy
- python: pypy3
- python: 3.7
services:
- docker
- postgresql
- memcached
before_install:
- docker pull mysql:8.0
- docker run -d --publish 3306:3306 --rm --name mysqld -e MYSQL_ALLOW_EMPTY_PASSWORD=yes mysql:8.0
- cp .travis/docker.cnf ~/.my.cnf
env:
global:
- PYTHONHASHSEED=8675309
Expand All @@ -45,6 +54,7 @@ before_install:
- python --version
before_script:
- ccache -s
- mysql -uroot -e 'select version()'

install:
- pip install -U pip
Expand Down
4 changes: 4 additions & 0 deletions .travis/docker.cnf
@@ -0,0 +1,4 @@
[client]
host = 127.0.0.1
port = 3306
protocol = tcp
1 change: 0 additions & 1 deletion src/relstorage/tests/testmysql.py
Expand Up @@ -109,7 +109,6 @@ class Tests(MySQLAdapterMixin,
base):
@skipOnCI("Travis MySQL goes away error 2006")
def check16MObject(self):
raise unittest.SkipTest("XXX")
# NOTE: If your mySQL goes away, check the server's value for
# `max_allowed_packet`, you probably need to increase it.
# JAM uses 64M.
Expand Down

0 comments on commit 255a2f9

Please sign in to comment.