
This PS is created to : - roll back apache-airflow back to 1.10.5 - change default chart values from bionic to ubuntu_focal - save freshly generated config and policy files samples - in focal Dockerfile postgres client version is pubped up to v15 - change airflow docker image requirements from limited to fully frozen for shipyard-airflow project - adjusted requirements-direct.txt for shipyard_airflow - adjusted requirements-direct.txt for shipyard_client - regenerated requirements-frozen for both projects - fixed unit tests after upgrading click module - gen_all tox profile processing has been moved over to py8 gate because it requires focal zuul node to run - upgraded airskiff gate playbook to include latest treasuremap patchset with updated airskiff site admada manifests Change-Id: I47e44f5cfa19b2649697e7cc5a31557a6f4fcfea
83 lines
2.0 KiB
INI
83 lines
2.0 KiB
INI
[tox]
|
|
skipsdist=True
|
|
envlist = all_jobs, docs
|
|
|
|
[testenv]
|
|
setenv=
|
|
PYTHONWARNING=all
|
|
passenv=
|
|
HTTP_PROXY
|
|
HTTPS_PROXY
|
|
http_proxy
|
|
https_proxy
|
|
NO_PROXY
|
|
no_proxy
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
# Please use `make docs` instead
|
|
[testenv:docs]
|
|
allowlist_externals=
|
|
rm
|
|
cp
|
|
tox
|
|
commands=
|
|
rm -rf {toxinidir}/doc/build
|
|
sphinx-build -W -b html {toxinidir}/doc/source {toxinidir}/doc/build/html
|
|
deps= -r{toxinidir}/doc/requirements.txt
|
|
|
|
# `all_jobs` is here to support invocation as simply `tox`, as is done in
|
|
# current pipeline.
|
|
[testenv:all_jobs]
|
|
allowlist_externals=
|
|
tox
|
|
commands=
|
|
tox -c {toxinidir}/src/bin/shipyard_airflow/tox.ini
|
|
tox -c {toxinidir}/src/bin/shipyard_client/tox.ini
|
|
|
|
[testenv:py38]
|
|
deps =
|
|
tox<=4.0.0
|
|
allowlist_externals=
|
|
tox
|
|
bash
|
|
commands=
|
|
tox -c {toxinidir}/src/bin/shipyard_airflow/tox.ini -e py38
|
|
tox -c {toxinidir}/src/bin/shipyard_client/tox.ini -e py38
|
|
tox -c {toxinidir}/src/bin/shipyard_airflow/tox.ini -e gen_all
|
|
bash -c "cp {toxinidir}/src/bin/shipyard_airflow/etc/shipyard/policy.yaml.sample {toxinidir}/doc/source/_static/shipyard.policy.yaml.sample"
|
|
bash -c "cp {toxinidir}/src/bin/shipyard_airflow/etc/shipyard/shipyard.conf.sample {toxinidir}/doc/source/_static/shipyard.conf.sample"
|
|
|
|
[testenv:pep8]
|
|
allowlist_externals=
|
|
tox
|
|
commands=
|
|
tox -c {toxinidir}/src/bin/shipyard_airflow/tox.ini -e pep8
|
|
tox -c {toxinidir}/src/bin/shipyard_client/tox.ini -e pep8
|
|
|
|
|
|
[testenv:freeze]
|
|
allowlist_externals=
|
|
tox
|
|
commands=
|
|
tox -c {toxinidir}/src/bin/shipyard_airflow/tox.ini -e freeze
|
|
tox -c {toxinidir}/src/bin/shipyard_client/tox.ini -e freeze
|
|
|
|
|
|
[testenv:shipyard_client]
|
|
deps =
|
|
-r{toxinidir}/src/bin/shipyard_airflow/requirements-frozen.txt
|
|
-r{toxinidir}/src/bin/shipyard_client/requirements-frozen.txt
|
|
skipsdist=True
|
|
allowlist_externals=
|
|
pytest
|
|
commands =
|
|
pytest \
|
|
{posargs} \
|
|
--cov-branch \
|
|
--cov-report=term-missing:skip-covered \
|
|
--cov-config=.coveragerc \
|
|
--cov=shipyard_client \
|
|
--cov-report=html \
|
|
-vv |