Use Horizon project template for django jobs
Horizon defined a project template 'horizon-non-primary-django-jobs' for django jobs. This patch use that template to run django jobs here. For information please refer [1] [1] https://review.opendev.org/#/c/681969/ Change-Id: If66f8edc7208b406d39cce90d22be53dd7e21301
This commit is contained in:
parent
3748986651
commit
7a7cea0799
|
@ -1,5 +1,6 @@
|
|||
- project:
|
||||
templates:
|
||||
- horizon-non-primary-django-jobs
|
||||
- openstack-python-jobs
|
||||
- openstack-python3-train-jobs
|
||||
- check-requirements
|
||||
|
|
12
tox.ini
12
tox.ini
|
@ -1,5 +1,5 @@
|
|||
[tox]
|
||||
envlist = py27,py37,py27dj18,pep8
|
||||
envlist = py27,py37,py3-{dj111,dj22},pep8
|
||||
minversion = 1.6
|
||||
skipsdist = True
|
||||
|
||||
|
@ -12,7 +12,10 @@ setenv = VIRTUAL_ENV={envdir}
|
|||
PYTHONHASHSEED=0
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
commands = {toxinidir}/manage.py test karbor_dashboard --settings=karbor_dashboard.test.settings
|
||||
commands =
|
||||
dj111: pip install django>=1.11,<2
|
||||
dj22: pip install django>=2.2,<2.3
|
||||
{toxinidir}/manage.py test karbor_dashboard --settings=karbor_dashboard.test.settings
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python3
|
||||
|
@ -28,11 +31,6 @@ commands = {posargs}
|
|||
basepython = python3
|
||||
commands = /bin/bash run_tests.sh -N --no-pep8 --coverage {posargs}
|
||||
|
||||
[testenv:py27dj18]
|
||||
basepython = python2.7
|
||||
commands = pip install django>=1.8,<1.9
|
||||
/bin/bash run_tests.sh -N --no-pep8 {posargs}
|
||||
|
||||
[testenv:py27integration]
|
||||
basepython = python2.7
|
||||
commands = /bin/bash run_tests.sh -N --integration --selenium-headless {posargs}
|
||||
|
|
Loading…
Reference in New Issue