
Refactor Shipyard to be better able to leverage common packages and conform with the target UCP standard layout. This change supports the same tox entrypoints at the root level, but the preferred approach is to use make targets defined in the Makefile such as 'make tests' and 'make lint' The previous tox.ini has moved and been tailored to the specifics of each subproject at src/bin/*/tox.ini Autotmatic generation of the policy and configuration files has been removed from the sphinx build for now but these files will be automatically generated locally into the docs source by using a 'make docs' command. This may need to be revisited later to re-enable the automatic generation of these files such that readthedocs would still support the project layout. Change-Id: Ifdc1cd4cf35fb3c5923414c677b781a60a9bae42
32 lines
950 B
INI
32 lines
950 B
INI
[tox]
|
|
skipsdist=True
|
|
envlist = all_jobs, docs
|
|
|
|
[testenv]
|
|
setenv=
|
|
PYTHONWARNING=all
|
|
basepython=python3.5
|
|
|
|
# Please use `make docs` instead
|
|
[testenv:docs]
|
|
whitelist_externals=
|
|
rm
|
|
cp
|
|
tox
|
|
commands=
|
|
tox -c {toxinidir}/src/bin/shipyard_airflow/tox.ini -e gen_all
|
|
cp {toxinidir}/src/bin/shipyard_airflow/etc/shipyard/policy.yaml.sample {toxinidir}/docs/source/_static/shipyard.policy.yaml.sample
|
|
cp {toxinidir}/src/bin/shipyard_airflow/etc/shipyard/shipyard.conf.sample {toxinidir}/docs/source/_static/shipyard.conf.sample
|
|
rm -rf {toxinidir}/docs/build
|
|
sphinx-build -b html {toxinidir}/docs/source {toxinidir}/docs/build
|
|
deps= -r{toxinidir}/docs/requirements.txt
|
|
|
|
# `all_jobs` is here to support invocation as simply `tox`, as is done in
|
|
# current pipeline.
|
|
[testenv:all_jobs]
|
|
whitelist_externals=
|
|
tox
|
|
commands=
|
|
tox -c {toxinidir}/src/bin/shipyard_airflow/tox.ini
|
|
tox -c {toxinidir}/src/bin/shipyard_client/tox.ini
|