forked from ttu/ruuvitag-sensor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
24 lines (20 loc) · 771 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
# content of: tox.ini , put in same dir as setup.py
[tox]
minversion = 2.0
envlist = py{27,35,36,37,38}-{basic_linux,basic_macos} # Todo add basic_windows
[testenv]
# environment will be skipped if regular expression does not match against the sys.platform string
# https://tox.readthedocs.io/en/latest/example/platform.html
platform = basic_linux: linux
basic_macos: darwin
# basic_windows: win32
setenv =
PYTHONPATH = {toxinidir}
RUUVI_ENV = CI
# install pytest in the virtualenv where commands will be executed
deps = pytest
mock
# upon tox invocation you will be greeted according to your platform
commands = basic_linux: pytest
basic_macos: pytest
# basic_windows: python setup.py install && pytest