tox.ini 1.14 KB
Newer Older
Pierre Augier's avatar
tox    
Pierre Augier committed
1
2
3
4
5
6
7
8
9
10
11
12
# Tox (http://tox.testrun.org/) is a tool for running tests in
# multiple virtualenvs. This configuration file will run the test
# suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
# http://tox.readthedocs.io/en/latest/config.html
#
# To run tox faster, check out Detox
# (https://pypi.python.org/pypi/detox), which runs your tox runs in
# parallel. To use it, "pip install detox" and then run "detox" from
# this directory.
[tox]
envlist =
13
14
15
    py{36,37}
    pypy3.5-6.0.0
    py36-pythran
Pierre Augier's avatar
tox    
Pierre Augier committed
16
17
18
19
20
21
22
    codecov

[testenv]
sitepackages = True
deps =
    coverage
    pytest
23
    git+https://github.com/zonca/pytest-ipynb#egg=pytest-ipynb
Pierre Augier's avatar
Pierre Augier committed
24
    mpi4py
Pierre Augier's avatar
Pierre Augier committed
25
    black
26
    py36-pythran: pythran
Pierre Augier's avatar
Pierre Augier committed
27

Pierre Augier's avatar
tox    
Pierre Augier committed
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
whitelist_externals = make
commands =
    make tests_coverage

[testenv:codecov]
passenv = CODECOV_TOKEN
sitepackages = True
deps = codecov
whitelist_externals = make
skip_install = true
commands =
    make report_coverage
    codecov --file .coverage/coverage.xml

[testenv:codecov-travis]
passenv = CI TRAVIS TRAVIS_*
deps = codecov
skip_install = true
commands =
    make report_coverage
    codecov --file .coverage/coverage.xml