forked from PyMySQL/PyMySQL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
75 lines (61 loc) · 1.9 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
sudo: required
dist: trusty
language: python
python:
- "3.7-dev"
- "3.6"
- "2.6"
- "pypy3.3-5.2-alpha1"
cache: pip
matrix:
include:
- addons:
mariadb: 5.5
python: "3.5"
- addons:
mariadb: 10.0
python: "pypy"
- addons:
mariadb: 10.1
python: "2.7"
- env:
- DB=5.6.35
addons:
apt:
packages:
- libaio-dev
python: "3.3"
- env:
- DB=5.7.17
addons:
apt:
packages:
- libaio-dev
python: "3.4"
# different py version from 5.6 and 5.7 as cache seems to be based on py version
# http://dev.mysql.com/downloads/mysql/5.7.html has latest development release version
# really only need libaio1 for DB builds however libaio-dev is whitelisted for container builds and liaio1 isn't
install:
- if [ -n "${EXTRAPKG}" ]; then
sudo apt-get install ${EXTRAPKG};
fi
- export PASSWORD=travis;
- pip install -U coveralls unittest2 coverage
before_script:
- ./.travis/initializedb.sh
- mysql -e 'create database test_pymysql DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;'
- mysql -e 'create database test_pymysql2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;'
- mysql -u root -e "create user travis_pymysql2 identified by 'some password'; grant all on test_pymysql2.* to travis_pymysql2;"
- mysql -u root -e "create user travis_pymysql2@localhost identified by 'some password'; grant all on test_pymysql2.* to travis_pymysql2@localhost;"
- mysql -e 'select VERSION()'
- python -VV
- rm -f ~/.my.cnf # set in .travis.initialize.db.sh for the above commands - we should be using database.json however
- export COVERALLS_PARALLEL=true
script:
- coverage run ./runtests.py
after_success:
- coveralls
- cat /tmp/mysql.err
after_failure:
- cat /tmp/mysql.err
# vim: sw=2 ts=2 sts=2 expandtab