stop using tox.

This commit is contained in:
INADA Naoki
2017-02-19 20:11:49 +09:00
parent cba486e043
commit 97e18a1ea1
2 changed files with 16 additions and 30 deletions

View File

@ -1,35 +1,33 @@
sudo: false
dist: trusty
language: python
python: "3.5"
python:
- "nightly"
- "pypy-5.3.1"
- "3.6-dev"
- "3.6"
- "3.5"
- "3.4"
- "2.7"
cache: pip
install:
- pip install tox
matrix:
include:
- python: "3.6-dev"
env:
- TOX_ENV=py36
- TESTDB=travis.cnf
- pip install -U pip
- pip install -U mock coverage pytest pytest-cov
env:
matrix:
- TOX_ENV=py26
- TOX_ENV=py27
- TOX_ENV=pypy
- TOX_ENV=py33
- TOX_ENV=py34
- TOX_ENV=py35
global:
- TESTDB=travis.cnf
before_script:
- "mysql --help"
- "mysql --print-defaults"
- "mysql -e 'create database mysqldb_test charset utf8mb4;'"
script: tox -e $TOX_ENV
script:
- pip install -e .
- py.test --cov ./MySQLdb
# vim: sw=2 ts=2 sts=2

12
tox.ini
View File

@ -1,12 +0,0 @@
[tox]
envlist = py26, py27, pypy, py33, py34, py35
[testenv]
passenv = TESTDB
commands =
py.test --cov {envsitepackagesdir}/MySQLdb
deps =
mock
coverage==3.7.1
pytest
pytest-cov