-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
67 lines (62 loc) · 1.94 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
60
61
62
63
64
65
66
67
# geckodriver howto
# https://askubuntu.com/questions/851401/where-to-find-geckodriver-needed-by-selenium-python-package/863211
# first: check latest version here: https://github.com/mozilla/geckodriver/releases
# wget https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-linux64.tar.gz
# tar -xvzf geckodriver-v0.11.1-linux64.tar.gz
# rm geckodriver-v0.11.1-linux64.tar.gz
# chmod +x geckodriver
# cp geckodriver /usr/local/bin/
[tox]
envlist =
py{37}-django{22}-cms{37}-treebeard{43}
py{37,38,39}-django{22,32}-cms{39}-treebeard{45} # wait for hvad!?
py{37,38,39}-django{32}-cms{310}-treebeard{45} # wait for hvad!?
py37-django22-cms37-treebeard{43}-coverage
flake8
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
[testenv:flake8]
deps = flake8
commands = flake8
skip_install = true
[testenv:py37-django22-cms37-treebeard43-coverage]
allowlist_externals = echo
commands =
pip install coverage
coverage erase
coverage run ./manage.py test
coverage report --include='djangocms_misc*' --omit='*/tests/*' --omit='*/migrations/*'
coverage html --include='djangocms_misc*' --omit='*/tests/*' --omit='*/migrations/*'
echo "opener htmlcov/index.html"
[testenv]
commands = python manage.py test {posargs}
setenv =
DJANGO_SETTINGS_MODULE=djangocms_misc.tests.settings
PYTHONPATH={toxinidir}
deps =
django22: Django>=2.2,<2.3
django32: Django>=3.2,<3.3
cms34: django-cms==3.4.6
cms37: django-cms==3.7.3
cms39: django-cms==3.9.0
cms310: django-cms==3.10.0
treebeard43: django-treebeard==4.3.0
treebeard45: django-treebeard==4.5.1
coverage
django-coverage
factory_boy
mock
selenium
django-appconf
django-sekizai
djangocms-link
djangocms-text-ckeditor
django-filer
# django-formtools<2.2
# django-hvad
# 0.12.2 introduces something strange!
# django-modeltranslation==0.12.1
django-modeltranslation