Merge "Add python3 django 1.11 job instead of django 2.0 job"
This commit is contained in:
commit
e6e6e3f4ca
@ -1,9 +1,7 @@
|
|||||||
- project:
|
- project:
|
||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
- horizon-openstack-tox-py35dj20:
|
- horizon-openstack-tox-python3-django111
|
||||||
required-projects:
|
|
||||||
openstack/horizon
|
|
||||||
- nodejs-npm-run-lint:
|
- nodejs-npm-run-lint:
|
||||||
vars:
|
vars:
|
||||||
node_version: 4
|
node_version: 4
|
||||||
@ -16,9 +14,7 @@
|
|||||||
openstack/horizon
|
openstack/horizon
|
||||||
gate:
|
gate:
|
||||||
jobs:
|
jobs:
|
||||||
- horizon-openstack-tox-py35dj20:
|
- horizon-openstack-tox-python3-django111
|
||||||
required-projects:
|
|
||||||
openstack/horizon
|
|
||||||
- nodejs-npm-run-lint:
|
- nodejs-npm-run-lint:
|
||||||
vars:
|
vars:
|
||||||
node_version: 4
|
node_version: 4
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[tox]
|
[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
|
minversion = 2.3.2
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ commands =
|
|||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
basepython = python3.5
|
basepython = python3
|
||||||
commands = flake8 {posargs}
|
commands = flake8 {posargs}
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
@ -37,6 +37,7 @@ exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,node_modules
|
|||||||
max-complexity = 20
|
max-complexity = 20
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
|
basepython = python3
|
||||||
commands =
|
commands =
|
||||||
coverage erase
|
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}
|
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
|
# NOTE(shu-mutow): On CI infra, horizon will be installed
|
||||||
# according to job setting. but on local, we need to install
|
# according to job setting. but on local, we need to install
|
||||||
# horizon from master branch.
|
# horizon from master branch.
|
||||||
[testenv:py27]
|
|
||||||
basepython = python2.7
|
|
||||||
|
|
||||||
[testenv:py27-local]
|
[testenv:py27-local]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
commands =
|
commands =
|
||||||
@ -61,21 +59,21 @@ commands =
|
|||||||
{[testenv:hz-local]commands}
|
{[testenv:hz-local]commands}
|
||||||
{[testenv]commands}
|
{[testenv]commands}
|
||||||
|
|
||||||
[testenv:py35dj20]
|
[testenv:py3-dj111]
|
||||||
basepython = python3.5
|
basepython = python3
|
||||||
commands =
|
commands =
|
||||||
{[testenv:hz-local]commands}
|
pip install django>=1.11,<2
|
||||||
{[testenv]commands}
|
{[testenv]commands}
|
||||||
|
|
||||||
[testenv:py35dj20-local]
|
[testenv:py3-dj111-local]
|
||||||
basepython = python3.5
|
basepython = python3
|
||||||
commands =
|
commands =
|
||||||
{[testenv:hz-local]commands}
|
{[testenv:hz-local]commands}
|
||||||
pip install -U django>=2.0,<2.1
|
pip install django>=1.11,<2
|
||||||
{[testenv]commands}
|
{[testenv]commands}
|
||||||
|
|
||||||
[testenv:eslint]
|
[testenv:eslint]
|
||||||
basepython = python3.5
|
basepython = python3
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
npm
|
npm
|
||||||
commands =
|
commands =
|
||||||
@ -86,7 +84,7 @@ commands =
|
|||||||
# from master branch into py35 environment for testing javascripts.
|
# from master branch into py35 environment for testing javascripts.
|
||||||
# Horizon from master is needed to be cloned into ../horizon on both local and CI.
|
# Horizon from master is needed to be cloned into ../horizon on both local and CI.
|
||||||
[testenv:karma]
|
[testenv:karma]
|
||||||
basepython = python3.5
|
basepython = python3
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
{[testenv:eslint]whitelist_externals}
|
{[testenv:eslint]whitelist_externals}
|
||||||
commands =
|
commands =
|
||||||
@ -94,14 +92,14 @@ commands =
|
|||||||
npm run test
|
npm run test
|
||||||
|
|
||||||
[testenv:karma-local]
|
[testenv:karma-local]
|
||||||
basepython = python3.5
|
basepython = python3
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
{[testenv:eslint]whitelist_externals}
|
{[testenv:eslint]whitelist_externals}
|
||||||
commands =
|
commands =
|
||||||
{[testenv:karma]commands}
|
{[testenv:karma]commands}
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python3.5
|
basepython = python3
|
||||||
deps =
|
deps =
|
||||||
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
||||||
-r{toxinidir}/doc/requirements.txt
|
-r{toxinidir}/doc/requirements.txt
|
||||||
@ -109,7 +107,7 @@ commands=
|
|||||||
sphinx-build -W -b html doc/source doc/build/html
|
sphinx-build -W -b html doc/source doc/build/html
|
||||||
|
|
||||||
[testenv:docs-local]
|
[testenv:docs-local]
|
||||||
basepython = python3.5
|
basepython = python3
|
||||||
deps =
|
deps =
|
||||||
{[testenv:docs]deps}
|
{[testenv:docs]deps}
|
||||||
commands=
|
commands=
|
||||||
@ -117,7 +115,7 @@ commands=
|
|||||||
{[testenv:docs]commands}
|
{[testenv:docs]commands}
|
||||||
|
|
||||||
[testenv:releasenotes]
|
[testenv:releasenotes]
|
||||||
basepython = python3.5
|
basepython = python3
|
||||||
deps =
|
deps =
|
||||||
{[testenv:docs]deps}
|
{[testenv:docs]deps}
|
||||||
commands =
|
commands =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user