forked from openedx-unsupported/edx-analytics-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
44 lines (41 loc) · 954 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
37
38
39
40
41
42
43
44
[tox]
envlist = py38-django{42}
skipsdist = true
[pytest]
DJANGO_SETTINGS_MODULE = analytics_dashboard.settings.test
[testenv]
passenv =
API_SERVER_URL
API_AUTH_TOKEN
LMS_HOSTNAME
LMS_PASSWORD
LMS_USERNAME
ENABLE_AUTO_AUTH
ENABLE_OAUTH_TESTS
ENABLE_ERROR_PAGE_TESTS
ENABLE_COURSE_LIST_FILTERS
ENABLE_COURSE_LIST_PASSING
COVERAGE_DIR
DISPLAY
SELENIUM_BROWSER
deps =
django42: -r requirements/django.txt
-r {toxinidir}/requirements/test.txt
allowlist_externals =
make
commands =
{posargs:pytest}
[testenv:docs]
deps =
-r{toxinidir}/requirements/doc.txt
allowlist_externals =
make
env
setenv =
# -W will treat warnings as errors.
SPHINXOPTS = -W
commands =
# -e allows for overriding setting from the environment.
# -C changes the directory to `docs` before running the command.
make -e -C docs/en_us/dashboard clean
make -e -C docs/en_us/dashboard html