forked from amusecode/amuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
29 lines (24 loc) · 1.01 KB
/
tox.ini
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
# tox (https://tox.readthedocs.io/) 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.
[tox]
[testenv]
deps =
pytest
pytest-cov
pytest-timeout
coverage
usedevelop = true
whitelist_externals =
bash
mpiexec
make
configure
coverage
commands =
bash -ec 'if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./configure --with-hdf5=$CONDA_PREFIX --with-gmp=$CONDA_PREFIX --with-mpfr=$CONDA_PREFIX --with-fftw=$CONDA_PREFIX --with-gsl-prefix=$CONDA_PREFIX; else ./configure; fi'
make framework
mpiexec -n 1 pytest --timeout=10 --cov-report=xml --cov=amuse --pyargs amuse.test.suite.reports.test_speed
mpiexec -n 1 pytest --timeout=30 --cov-report=xml --cov=amuse --pyargs amuse.test.suite.core_tests
mpiexec -n 1 pytest -v --timeout=10 --timeout_method=thread --cov-report=xml --cov=amuse --pyargs amuse.test.suite.compile_tests