forked from PyMySQL/PyMySQL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (60 loc) · 1.5 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
# vim: sw=2 ts=2 sts=2 expandtab
sudo: required
language: python
services:
- docker
cache: pip
matrix:
include:
- env:
- DB=mariadb:5.5
python: "3.5"
- env:
- DB=mariadb:10.0
python: "3.6"
- env:
- DB=mariadb:10.1
python: "pypy"
- env:
- DB=mariadb:10.2
python: "2.7"
- env:
- DB=mariadb:10.3
python: "3.7-dev"
- env:
- DB=mysql:5.5
python: "3.5"
- env:
- DB=mysql:5.6
python: "3.6"
- env:
- DB=mysql:5.7
python: "3.4"
- env:
- DB=mysql:8.0
- TEST_AUTH=yes
python: "3.7-dev"
- env:
- DB=mysql:8.0
- TEST_AUTH=yes
python: "2.7"
# 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:
- pip install -U coveralls unittest2 coverage cryptography pytest pytest-cov
before_script:
- ./.travis/initializedb.sh
- 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
- if [ "${TEST_AUTH}" = "yes" ];
then pytest -v --cov-config .coveragerc tests;
fi
- if [ ! -z "${DB}" ];
then docker logs mysqld;
fi
after_success:
- coveralls