
Add status command to display information the current deployment of the OSTree repository when OSTree is deployed. This command will not work from a non-OSTree deployed system. The status command will display the current running branch, in green. The current commit that is deployed and the Debian version has been deployed. Also update tox.ini and bindep.txt to support ostree. Test Plan PASSED Installed apt-ostree from git repo. PASSED Run sudo apt-ostree compose create \ --base config/debian/bookworm \ --repo /repo debian/bookworm PASSED Run "apt-ostree compose image --base config/debian/image \ --repo=/repo test" PASSED Start VM. PASSED Run the apt-ostree status command. Story: 2010867 Task: 48556 Change-Id: Ie55007e83869f5c491f97c1828508e7c8085f47a Signed-off-by: Charles Short <charles.short@windriver.com>
72 lines
1.8 KiB
INI
72 lines
1.8 KiB
INI
[tox]
|
|
minversion = 3.2.0
|
|
envlist = py39,flake8,yamllint
|
|
skipsdist = True
|
|
ignore_basepython_conflict = true
|
|
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = true
|
|
sitepacages = False
|
|
setenv =
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
OS_STDOUT_CAPTURE=1
|
|
OS_STDERR_CAPTURE=1
|
|
OS_TEST_TIMEOUT=60
|
|
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/starlingx/root/raw/branch/master/build-tools/requirements/debian/upper-constraints.txt}
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
commands = stestr run {posargs}
|
|
|
|
[testenv:lower-constraints]
|
|
deps = -c{toxinidir}/lower-constraints.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:flake8]
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
PYTHON=coverage run --source apt_ostree --parallel-mode
|
|
commands =
|
|
stestr run {posargs}
|
|
coverage combine
|
|
coverage html -d cover
|
|
coverage xml -o cover/coverage.xml
|
|
|
|
[testenv:docs]
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
|
commands = sphinx-build -W -b html doc/source doc/build/html
|
|
|
|
[testenv:releasenotes]
|
|
deps = {[testenv:docs]deps}
|
|
commands =
|
|
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[testenv:linters]
|
|
commands =
|
|
doc8 doc/
|
|
yamllint config/
|
|
|
|
[testenv:bindep]
|
|
# Do not install any requirements. We want this to be fast and work even if
|
|
# system dependencies are missing, since it's used to tell you what system
|
|
# dependencies are missing! This also means that bindep must be installed
|
|
# separately, outside of the requirements files.
|
|
skip_install = True
|
|
deps = bindep
|
|
commands = bindep test
|
|
|
|
[stestr]
|
|
test_path=./apt_ostree/tests
|
|
top_dir=./
|
|
group_regex=([^\.]*\.)*
|