2014-11-19 19:36:40 +03:00
|
|
|
[tox]
|
2017-10-23 14:09:29 +03:00
|
|
|
envlist = es, addons, devhub, reviewers, main, ui-tests, flake8, docs, assets
|
2014-11-19 19:36:40 +03:00
|
|
|
|
|
|
|
[testenv]
|
2017-11-13 19:29:57 +03:00
|
|
|
passenv = *
|
2015-03-12 20:49:34 +03:00
|
|
|
basepython = python2.7
|
2016-05-12 19:31:40 +03:00
|
|
|
install_command = pip install --no-deps {packages}
|
2014-11-19 19:36:40 +03:00
|
|
|
setenv =
|
2015-12-23 16:39:55 +03:00
|
|
|
PYTHONPATH=src
|
2016-03-10 02:37:09 +03:00
|
|
|
ADDONS_LINTER_BIN={toxinidir}/node_modules/.bin/addons-linter
|
2016-05-12 18:40:27 +03:00
|
|
|
DJANGO_SETTINGS_MODULE=settings_test
|
2014-11-19 19:36:40 +03:00
|
|
|
whitelist_externals =
|
|
|
|
make
|
2014-12-18 13:52:39 +03:00
|
|
|
npm
|
2017-06-20 14:43:11 +03:00
|
|
|
bash
|
2014-11-19 19:36:40 +03:00
|
|
|
|
|
|
|
[testenv:es]
|
|
|
|
commands =
|
2017-06-16 18:46:00 +03:00
|
|
|
make -f Makefile-docker update_deps
|
2017-06-20 14:43:11 +03:00
|
|
|
bash {toxinidir}/locale/compile-mo.sh {toxinidir}/locale/
|
2017-06-01 14:20:12 +03:00
|
|
|
py.test -m es_tests --ignore=tests/ui/ -v {posargs}
|
2014-11-19 19:36:40 +03:00
|
|
|
|
2016-03-31 18:35:54 +03:00
|
|
|
[testenv:addons]
|
2014-11-19 19:36:40 +03:00
|
|
|
commands =
|
2017-06-16 18:46:00 +03:00
|
|
|
make -f Makefile-docker update_deps
|
2017-06-20 14:43:11 +03:00
|
|
|
bash {toxinidir}/locale/compile-mo.sh {toxinidir}/locale/
|
2017-07-03 20:45:24 +03:00
|
|
|
py.test -n 2 -m 'not es_tests' -v src/olympia/addons/ {posargs}
|
2016-03-31 18:35:54 +03:00
|
|
|
|
|
|
|
[testenv:devhub]
|
|
|
|
commands =
|
2017-06-16 18:46:00 +03:00
|
|
|
make -f Makefile-docker update_deps
|
2017-06-20 14:43:11 +03:00
|
|
|
bash {toxinidir}/locale/compile-mo.sh {toxinidir}/locale/
|
2017-07-03 20:45:24 +03:00
|
|
|
py.test -n 2 -m 'not es_tests' -v src/olympia/devhub/ {posargs}
|
2016-03-31 18:35:54 +03:00
|
|
|
|
2017-10-23 14:09:29 +03:00
|
|
|
[testenv:reviewers]
|
2016-03-31 18:35:54 +03:00
|
|
|
commands =
|
2017-06-16 18:46:00 +03:00
|
|
|
make -f Makefile-docker update_deps
|
2017-06-20 14:43:11 +03:00
|
|
|
bash {toxinidir}/locale/compile-mo.sh {toxinidir}/locale/
|
2017-10-23 14:09:29 +03:00
|
|
|
py.test -n 2 -m 'not es_tests' -v src/olympia/reviewers/ {posargs}
|
2016-07-06 18:46:50 +03:00
|
|
|
|
|
|
|
[testenv:amo]
|
|
|
|
commands =
|
2017-06-16 18:46:00 +03:00
|
|
|
make -f Makefile-docker update_deps
|
2017-06-20 14:43:11 +03:00
|
|
|
bash {toxinidir}/locale/compile-mo.sh {toxinidir}/locale/
|
2017-07-03 20:45:24 +03:00
|
|
|
py.test -n 2 -m 'not es_tests' -v src/olympia/amo/ {posargs}
|
2016-07-06 18:46:50 +03:00
|
|
|
|
|
|
|
[testenv:users]
|
|
|
|
commands =
|
2017-06-16 18:46:00 +03:00
|
|
|
make -f Makefile-docker update_deps
|
2017-06-20 14:43:11 +03:00
|
|
|
bash {toxinidir}/locale/compile-mo.sh {toxinidir}/locale/
|
2017-07-03 20:45:24 +03:00
|
|
|
py.test -n 2 -m 'not es_tests' -v src/olympia/users/ {posargs}
|
2016-07-06 18:46:50 +03:00
|
|
|
|
2014-11-19 19:36:40 +03:00
|
|
|
[testenv:main]
|
|
|
|
commands =
|
2017-06-16 18:46:00 +03:00
|
|
|
make -f Makefile-docker update_deps
|
2017-06-20 14:43:11 +03:00
|
|
|
bash {toxinidir}/locale/compile-mo.sh {toxinidir}/locale/
|
2017-10-23 14:09:29 +03:00
|
|
|
py.test -n 2 -m 'not es_tests' -v src/olympia/ --ignore src/olympia/addons/ --ignore src/olympia/devhub/ --ignore src/olympia/reviewers/ --ignore src/olympia/amo/ --ignore src/olympia/users/ {posargs}
|
2016-06-27 11:30:28 +03:00
|
|
|
|
|
|
|
[testenv:ui-tests]
|
2017-02-07 22:21:09 +03:00
|
|
|
commands =
|
2017-06-16 18:46:00 +03:00
|
|
|
make -f Makefile-docker update_deps
|
2017-10-05 14:14:08 +03:00
|
|
|
pip install --no-deps -r requirements/uitests.txt
|
|
|
|
make -f Makefile-docker ui-tests
|
|
|
|
pytest --driver Remote --host selenium-firefox --port 4444 --capability browserName firefox --variables tests/ui/variables.json --self-contained-html tests/ui {posargs}
|
2014-11-19 19:36:40 +03:00
|
|
|
|
2014-12-18 13:52:39 +03:00
|
|
|
[testenv:assets]
|
|
|
|
commands =
|
2017-06-16 18:46:00 +03:00
|
|
|
make -f Makefile-docker update_deps
|
|
|
|
make -f Makefile-docker update_assets
|
2014-12-18 13:52:39 +03:00
|
|
|
|
2014-11-19 19:36:40 +03:00
|
|
|
[testenv:flake8]
|
2016-09-22 15:37:52 +03:00
|
|
|
recreate = True
|
2017-06-01 14:20:12 +03:00
|
|
|
commands =
|
2017-10-13 07:29:40 +03:00
|
|
|
pip install -r requirements/system.txt
|
2017-06-01 14:20:12 +03:00
|
|
|
pip install -r requirements/flake8.txt
|
|
|
|
make flake8
|
2014-11-19 19:36:40 +03:00
|
|
|
|
|
|
|
[testenv:docs]
|
2016-04-12 03:59:28 +03:00
|
|
|
commands =
|
2017-10-13 07:29:40 +03:00
|
|
|
pip install -r requirements/system.txt
|
2017-06-01 14:20:12 +03:00
|
|
|
pip install -r requirements/docs.txt
|
2017-06-16 18:46:00 +03:00
|
|
|
make -f Makefile-docker docs SPHINXOPTS='-nW'
|