forked from PyMySQL/mysqlclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (54 loc) · 1.35 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
dist: xenial
language: python
# See aws s3 ls s3://travis-python-archives/binaries/ubuntu/16.04/x86_64/
python:
- "nightly"
- "pypy3.5"
- "pypy2.7-5.10.0"
- "3.7"
- "3.6"
- "3.5"
- "2.7"
- "3.8-dev"
cache: pip
services:
- mysql
install:
- pip install -U pip
- pip install -U mock coverage pytest pytest-cov codecov
env:
global:
- TESTDB=travis.cnf
before_script:
- "mysql --help"
- "mysql --print-defaults"
- "mysql -e 'create database mysqldb_test charset utf8mb4;'"
script:
- pip install -e .
- pytest --cov ./MySQLdb
after_success:
- codecov
matrix:
include:
- &django_py27
name: "Django test (Python 2.7)
python: "2.7"
install:
- pip install -U pip
- wget https://github.com/django/django/archive/1.11.18.tar.gz
- tar xf 1.11.18.tar.gz
- pip install django-1.11.18/
- cp ci/test_mysql.py django-1.11.18/tests/
- pip install .
before_script:
- mysql -e 'create user django identified by "secret"'
- mysql -e 'grant all on *.* to django'
- mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql mysql
script:
- cd django-1.11.18/tests/
- ./runtests.py --parallel=1 --settings=test_mysql
- &django_py3
<<: *django_py27
name: "Django test (Python 3.7)"
python: "3.7"
# vim: sw=2 ts=2 sts=2