Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 665f188

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

File tree

Expand file treeCollapse file tree

3 files changed

+8
-2
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+8
-2
lines changed

‎.travis.yml

Copy file name to clipboard
+6-2Lines changed: 6 additions & 2 deletions
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

Copy file name to clipboardExpand all lines: tests/travis.cnf
+1Lines changed: 1 addition & 0 deletions
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

Copy file name to clipboardExpand all lines: tox.ini
+1Lines changed: 1 addition & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.