Merge "Add python3 django 1.11 job instead of django 2.0 job"

This commit is contained in:
Zuul 2018-07-20 01:48:40 +00:00 committed by Gerrit Code Review
commit e6e6e3f4ca
2 changed files with 17 additions and 23 deletions

View File

@ -1,9 +1,7 @@
- project:
check:
jobs:
- horizon-openstack-tox-py35dj20:
required-projects:
openstack/horizon
- horizon-openstack-tox-python3-django111
- nodejs-npm-run-lint:
vars:
node_version: 4
@ -16,9 +14,7 @@
openstack/horizon
gate:
jobs:
- horizon-openstack-tox-py35dj20:
required-projects:
openstack/horizon
- horizon-openstack-tox-python3-django111
- nodejs-npm-run-lint:
vars:
node_version: 4

View File

@ -1,5 +1,5 @@
[tox]
envlist = pep8,py27-local,py35-local,py35dj20-local,eslint,karma-local,docs-local,releasenotes
envlist = pep8,py27-local,py35-local,py3-dj111-local,eslint,karma-local,docs-local,releasenotes
minversion = 2.3.2
skipsdist = True
@ -29,7 +29,7 @@ commands =
commands = {posargs}
[testenv:pep8]
basepython = python3.5
basepython = python3
commands = flake8 {posargs}
[flake8]
@ -37,6 +37,7 @@ exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,node_modules
max-complexity = 20
[testenv:cover]
basepython = python3
commands =
coverage erase
coverage run {toxinidir}/manage.py test {{cookiecutter.module_name}} --settings={{cookiecutter.module_name}}.test.settings {posargs} --exclude-dir={{cookiecutter.module_name}}/test/integration_tests {posargs}
@ -46,9 +47,6 @@ commands =
# NOTE(shu-mutow): On CI infra, horizon will be installed
# according to job setting. but on local, we need to install
# horizon from master branch.
[testenv:py27]
basepython = python2.7
[testenv:py27-local]
basepython = python2.7
commands =
@ -61,21 +59,21 @@ commands =
{[testenv:hz-local]commands}
{[testenv]commands}
[testenv:py35dj20]
basepython = python3.5
[testenv:py3-dj111]
basepython = python3
commands =
{[testenv:hz-local]commands}
pip install django>=1.11,<2
{[testenv]commands}
[testenv:py35dj20-local]
basepython = python3.5
[testenv:py3-dj111-local]
basepython = python3
commands =
{[testenv:hz-local]commands}
pip install -U django>=2.0,<2.1
pip install django>=1.11,<2
{[testenv]commands}
[testenv:eslint]
basepython = python3.5
basepython = python3
whitelist_externals =
npm
commands =
@ -86,7 +84,7 @@ commands =
# from master branch into py35 environment for testing javascripts.
# Horizon from master is needed to be cloned into ../horizon on both local and CI.
[testenv:karma]
basepython = python3.5
basepython = python3
whitelist_externals =
{[testenv:eslint]whitelist_externals}
commands =
@ -94,14 +92,14 @@ commands =
npm run test
[testenv:karma-local]
basepython = python3.5
basepython = python3
whitelist_externals =
{[testenv:eslint]whitelist_externals}
commands =
{[testenv:karma]commands}
[testenv:docs]
basepython = python3.5
basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/doc/requirements.txt
@ -109,7 +107,7 @@ commands=
sphinx-build -W -b html doc/source doc/build/html
[testenv:docs-local]
basepython = python3.5
basepython = python3
deps =
{[testenv:docs]deps}
commands=
@ -117,7 +115,7 @@ commands=
{[testenv:docs]commands}
[testenv:releasenotes]
basepython = python3.5
basepython = python3
deps =
{[testenv:docs]deps}
commands =