-
Notifications
You must be signed in to change notification settings - Fork 20
/
tox.ini
59 lines (52 loc) · 1.23 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[tox]
envlist =
simple-linux32
simple-linux
simple-macos
simple-windows
opengl-linux
opengl-macos
opengl-windows
compiler_macos_conda
testtoxargs
testtoxverspec
cache-a
cache-b
global_libraries
env_libraries
requires = pip >= 18.0
setuptools >= 30.3.0
skipsdist = true
[testenv]
setenv = ENVNAME={envname}
deps =
pytest
opengl: vispy
opengl: PyQt5
commands = pytest -v -s test.py
[testenv:compiler_macos_conda]
# This is a test to make sure that compilers work properly on MacOS X
# when installed from conda (which requires CONDA_BUILD_SYSROOT to be set)
passenv:
CONDA_BUILD_SYSROOT
conda_deps:
clang_osx-64==10
commands:
clang-10 test.c
[testenv:testtoxargs]
commands = "/bin/bash exit 1;"
[testenv:testtoxverspec]
allowlist_externals = /usr/bin/bash
commands = bash -c "if [[ $(tox --version) == 3.27.1* ]]; then exit 0; else exit 1; fi"
[testenv:global_libraries]
allowlist_externals = /usr/bin/bash
deps =
commands =
bash -c "which rolldice && exit 0 || exit 1"
bash -c "which bcal && exit 1 || exit 0"
[testenv:env_libraries]
allowlist_externals = /usr/bin/bash
deps =
commands =
bash -c "which rolldice && exit 1 || exit 0"
bash -c "which bcal && exit 0 || exit 1"