forked from openedx-unsupported/bok-choy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
46 lines (42 loc) · 1.05 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
[tox]
envlist = py38-{core,needle}
[pytest]
addopts = --cov bok_choy --cov-report term-missing
norecursedirs = .* docs requirements
usefixtures = test_server
[testenv]
deps =
core: -r {toxinidir}/requirements/test.txt
needle: -r {toxinidir}/requirements/needle.txt
passenv =
DISPLAY
BOKCHOY_HEADLESS
MOZ_HEADLESS
SELENIUM_BROWSER
setenv =
SAVED_SOURCE_DIR={toxinidir}/logs
SCREENSHOT_DIR={toxinidir}/logs
SELENIUM_DRIVER_LOG_DIR={toxinidir}/logs
whitelist_externals =
mkdir
rm
commands =
pylint bok_choy
pylint tests
pycodestyle bok_choy
pycodestyle tests
mkdir -p $SELENIUM_DRIVER_LOG_DIR
rm -rf $SELENIUM_DRIVER_LOG_DIR/*
pytest {posargs:tests} --durations=10
[testenv:doc]
deps =
-r{toxinidir}/requirements/doc.txt
commands =
pip install --quiet --requirement requirements/doc.txt
- pip uninstall bok-choy -y
python setup.py install
python docs/code/round_1/test_search.py
python docs/code/round_2/test_search.py
python docs/code/round_3/test_search.py
python setup.py build_sphinx
python setup.py check --restructuredtext --strict