forked from GridTools/gt4py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
36 lines (29 loc) · 913 Bytes
/
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
29
30
31
32
33
34
35
36
# Tox configuration file
# Read more under https://tox.readthedocs.org/
[tox]
envlist =
py{36,37,38}-{cpu,cuda,cuda90,cuda91,cuda92,cuda100,cuda101}
py{36,37,38}-dawn-{cpu,cuda,cuda90,cuda91,cuda92,cuda100,cuda101}
[testenv]
install_command = python -m pip install --no-cache-dir {opts} {packages}
commands_pre =
python -m gt4py.gt_src_manager install
bash -c 'find . -type d -a \( -name .gt_cache -o -name .hypothesis -o -name .pytest_cache \) -print0 | xargs -0 rm -Rf'
commands =
cpu: pytest -v -k "not requires_gpu and not requires_cudatoolkit" {posargs}
!cpu: pytest -v {posargs}
passenv = BOOST_ROOT BOOST_HOME CUDA_HOME CUDA_PATH CXX CC OPENMP_CPPFLAGS OPENMP_LDFLAGS
whitelist_externals =
/bin/bash
make
gcc
g++
ldd
extras =
cuda: cuda
cuda90: cuda90
cuda91: cuda91
cuda92: cuda92
cuda100: cuda100
cuda101: cuda101
dawn: dawn