summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 217118647b3ecb8cfdbcfae60b5eda343f96d73f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[tox]
minversion = 2.3
envlist =
    {py26,py27,py34,py35,py36,py37,py38,py39,py310,py311}-std
    py27-coverage
skipsdist = true

[testenv]
usedevelop = true
deps =
    -r{toxinidir}/requirements/test.txt
whitelist_externals = /bin/sh
setenv =
    COVERAGE_FILE={envdir}/coverage_report
changedir = src
commands =
    {py26,py27,py34,py35,py36,py37,py38,py39,py310,py311}-std: py.test -v .
    {py27,py34,py35,py36,py37,py38,py39,py310,py311}-std: flake8 croniter/croniter.py
    py27-coverage: coverage erase
    py27-coverage: sh -c 'cd .. && coverage run $(which py.test) -v src'
    py27-coverage: coverage report