Skip to content

Commit 665f188

Browse files
committed
Merge pull request PyMySQL#46 from methane/fix/travis
Fix travis build
2 parents b9d5320 + be416d0 commit 665f188

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.travis.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
sudo: false
22
language: python
3+
cache: pip
34
install:
4-
- pip install tox six
5+
- pip install tox
56

6-
before_script: mysql -e 'create database mysqldb_test charset utf8;'
7+
before_script:
8+
- "mysql --help"
9+
- "mysql --print-defaults"
10+
- "mysql -e 'create database mysqldb_test charset utf8mb4;'"
711
script: TESTDB=travis.cnf tox

tests/travis.cnf

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
[MySQLdb-tests]
66
host = 127.0.0.1
7+
port = 3306
78
user = root
89
database = mysqldb_test
910
#password =

tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
envlist = py26, py27, pypy, py33, py34
33

44
[testenv]
5+
passenv = TESTDB
56
commands =
67
py.test --cov {envsitepackagesdir}/MySQLdb
78
deps =

0 commit comments

Comments
 (0)