8000 Travis: use docker for mysql-5.5, mysql-5.6, mariadb-5.5, 10.0, 10.1… · jiangsanyin/PyMySQL@217666d · GitHub
[go: up one dir, main page]

Skip to content

Commit 217666d

Browse files
grooverdanmethane
authored andcommitted
Travis: use docker for mysql-5.5, mysql-5.6, mariadb-5.5, 10.0, 10.1, 10.2, 10.3 (PyMySQL#662)
1 parent b51d5da commit 217666d

File tree

2 files changed

+23
-18
lines changed

2 files changed

+23
-18
lines changed

.travis.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,37 @@
22

33
sudo: required
44
language: python
5-
python:
6-
- "3.7-dev"
7-
- "3.6"
5+
services:
6+
- docker
87

98
cache: pip
109

1110
matrix:
1211
include:
13-
- addons:
14-
mariadb: 5.5
12+
- env:
13+
- DB=mariadb:5.5
1514
python: "3.5"
16-
17-
- addons:
18-
mariadb: 10.1
15+
- env:
16+
- DB=mariadb:10.0
17+
python: "3.6"
18+
- env:
19+
- DB=mariadb:10.1
1920
python: "pypy"
20-
21-
- addons:
22-
mariadb: 10.2
21+
- env:
22+
- DB=mariadb:10.2
2323
python: "2.7"
24-
2524
- env:
26-
- DB=5.7
25+
- DB=mariadb:10.3
26+
python: "3.7-dev"
27+
- env:
28+
- DB=mysql:5.5
29+
python: "3.5"
30+
- env:
31+
- DB=mysql:5.6
32+
python: "3.6"
33+
- env:
34+
- DB=mysql:5.7
2735
python: "3.4"
28-
services:
29-
- docker
30-
3136

3237
# different py version from 5.6 and 5.7 as cache seems to be based on py version
3338
# http://dev.mysql.com/downloads/mysql/5.7.html has latest development release version

.travis/initializedb.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ if [ ! -z "${DB}" ]; then
99
# disable existing database server in case of accidential connection
1010
sudo service mysql stop
1111

12-
docker pull mysql:${DB}
13-
docker run -it --name=mysqld -d -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -p 3306:3306 mysql:${DB}
12+
docker pull ${DB}
13+
docker run -it --name=mysqld -d -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -p 3306:3306 ${DB}
1414
sleep 10
1515

1616
while :

0 commit comments

Comments
 (0)
0