forked from PyMySQL/PyMySQL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (64 loc) · 1.69 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
# vim: sw=2 ts=2 sts=2 expandtab
dist: xenial
language: python
cache: pip
services:
- docker
matrix:
include:
- env:
- DB=mariadb:5.5
python: "3.5"
- env:
- DB=mariadb:10.0
python: "3.6"
- env:
- DB=mariadb:10.1
python: "pypy3"
- env:
- DB=mariadb:10.2
python: "2.7"
- env:
- DB=mariadb:10.3
- TEST_MARIADB_AUTH=yes
python: "3.7"
- env:
- DB=mysql:5.5
python: "3.5"
- env:
- DB=mysql:5.6
python: "3.9-dev"
- env:
- DB=mysql:5.7
python: "3.7"
- env:
- DB=mysql:8.0
- TEST_AUTH=yes
python: "3.8"
- 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 coverage cryptography PyNaCl 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:
- pytest -v --cov --cov-config .coveragerc pymysql
- if [ "${TEST_AUTH}" = "yes" ];
then pytest -v --cov --cov-config .coveragerc tests/test_auth.py;
fi
- if [ "${TEST_MARIADB_AUTH}" = "yes" ];
then pytest -v --cov --cov-config .coveragerc tests/test_mariadb_auth.py;
fi
- if [ ! -z "${DB}" ];
then docker logs mysqld;
fi
after_success:
- coveralls