misc: add gerrit integration configuration
Add zuul configuration file. Add gitreview configuration file. Normalise tox and requirements files. Change-Id: I0b4a3430fe53c26fc458fc45143c1c1e7ffd6113
This commit is contained in:
parent
0a5fa58fe9
commit
404311e1fd
4
.gitreview
Normal file
4
.gitreview
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[gerrit]
|
||||||
|
host=review.opendev.org
|
||||||
|
port=29418
|
||||||
|
project=openstack/charm-trilio-horizon-plugin.git
|
5
.zuul.yaml
Normal file
5
.zuul.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
- project:
|
||||||
|
templates:
|
||||||
|
- python35-charm-jobs
|
||||||
|
- openstack-python3-ussuri-jobs
|
||||||
|
- openstack-cover-jobs
|
@ -1,4 +1,3 @@
|
|||||||
# Requirements to build the charm
|
# Requirements to build the charm
|
||||||
charm-tools
|
charm-tools
|
||||||
simplejson
|
simplejson
|
||||||
flake8
|
|
@ -1,7 +1,8 @@
|
|||||||
# Unit test requirements
|
# This file is managed centrally by release-tools and should not be modified
|
||||||
flake8>=2.2.4,<=2.4.1
|
# within individual charm repos. See the 'global' dir contents for available
|
||||||
os-testr>=0.4.1
|
# choices of *requirements.txt files for OpenStack Charms:
|
||||||
charms.reactive
|
# https://github.com/openstack-charmers/release-tools
|
||||||
mock>=1.2
|
#
|
||||||
coverage>=3.6
|
# Functional Test Requirements (let Zaza's dependencies solve all dependencies here!)
|
||||||
git+https://github.com/openstack/charms.openstack#egg=charms.openstack
|
git+https://github.com/openstack-charmers/zaza.git#egg=zaza
|
||||||
|
git+https://github.com/javacruft/zaza-openstack-tests.git@triliovault-testing#egg=zaza.openstack
|
||||||
|
51
src/tox.ini
51
src/tox.ini
@ -1,21 +1,50 @@
|
|||||||
# tox (https://tox.readthedocs.io/) is a tool for running tests
|
# Source charm (with zaza): ./src/tox.ini
|
||||||
# in multiple virtualenvs. This configuration file will run the
|
# This file is managed centrally by release-tools and should not be modified
|
||||||
# test suite on all supported python versions. To use it, "pip install tox"
|
# within individual charm repos. See the 'global' dir contents for available
|
||||||
# and then run "tox" from this directory.
|
# choices of tox.ini for OpenStack Charms:
|
||||||
|
# https://github.com/openstack-charmers/release-tools
|
||||||
|
|
||||||
[tox]
|
[tox]
|
||||||
skipsdist = True
|
|
||||||
envlist = pep8
|
envlist = pep8
|
||||||
|
skipsdist = True
|
||||||
|
# NOTE: Avoid build/test env pollution by not enabling sitepackages.
|
||||||
|
sitepackages = False
|
||||||
|
# NOTE: Avoid false positives by not skipping missing interpreters.
|
||||||
|
skip_missing_interpreters = False
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
PYTHONHASHSEED=0
|
PYTHONHASHSEED=0
|
||||||
TERM=linux
|
whitelist_externals = juju
|
||||||
INTERFACE_PATH={toxinidir}/interfaces
|
passenv = HOME TERM CS_* OS_* TEST_*
|
||||||
LAYER_PATH={toxinidir}/layers
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
JUJU_REPOSITORY={toxinidir}/build
|
install_command =
|
||||||
|
pip install {opts} {packages}
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps=charm-tools
|
||||||
commands = flake8 {posargs} reactive
|
commands = charm-proof
|
||||||
|
|
||||||
|
[testenv:func-noop]
|
||||||
|
basepython = python3
|
||||||
|
commands =
|
||||||
|
functest-run-suite --help
|
||||||
|
|
||||||
|
[testenv:func]
|
||||||
|
basepython = python3
|
||||||
|
commands =
|
||||||
|
functest-run-suite --keep-model
|
||||||
|
|
||||||
|
[testenv:func-smoke]
|
||||||
|
basepython = python3
|
||||||
|
commands =
|
||||||
|
functest-run-suite --keep-model --smoke
|
||||||
|
|
||||||
|
[testenv:func-target]
|
||||||
|
basepython = python3
|
||||||
|
commands =
|
||||||
|
functest-run-suite --keep-model --bundle {posargs}
|
||||||
|
|
||||||
|
[testenv:venv]
|
||||||
|
commands = {posargs}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Unit test requirements
|
# Unit test requirements
|
||||||
flake8>=2.2.4
|
flake8>=2.2.4
|
||||||
os-testr>=0.4.1
|
stestr>=2.2.0
|
||||||
charms.reactive
|
charms.reactive
|
||||||
mock>=1.2
|
mock>=1.2
|
||||||
coverage>=3.6
|
coverage>=3.6
|
||||||
|
5
tox.ini
5
tox.ini
@ -50,6 +50,11 @@ basepython = python3.7
|
|||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
commands = stestr run --slowest {posargs}
|
commands = stestr run --slowest {posargs}
|
||||||
|
|
||||||
|
[testenv:py38]
|
||||||
|
basepython = python3.8
|
||||||
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
|
commands = stestr run --slowest {posargs}
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user