370b8bf229
1. change the command for testenv:releasenotes 2. add releasenotes as irrelevant-files for skyline-functional-devstack job Change-Id: Ia50312a136841ac42d77dcd5f23774161c9ae141
47 lines
985 B
INI
47 lines
985 B
INI
[tox]
|
|
minversion = 3.18.0
|
|
# python runtimes: https://governance.openstack.org/tc/reference/runtimes/ussuri.html
|
|
envlist = unittest-py38,lint,functional,package
|
|
skipsdist=true
|
|
# this allows tox to infer the base python from the environment name
|
|
# and override any basepython configured in this file
|
|
ignore_basepython_conflict=true
|
|
isolated_build=true
|
|
|
|
[testenv]
|
|
# Set default python version
|
|
basepython = python3
|
|
whitelist_externals =
|
|
make
|
|
poetry
|
|
rm
|
|
deps = poetry != 1.1.8
|
|
|
|
[testenv:unittest-py38]
|
|
commands =
|
|
make install
|
|
make test
|
|
|
|
[testenv:lint]
|
|
commands =
|
|
make install
|
|
make lint
|
|
|
|
[testenv:functional]
|
|
whitelist_externals =
|
|
echo
|
|
commands =
|
|
echo "TODO: Add functional test for skyline-apiserver"
|
|
|
|
[testenv:package]
|
|
commands =
|
|
make package
|
|
|
|
[testenv:releasenotes]
|
|
description =
|
|
Generate release notes.
|
|
commands =
|
|
poetry install -vvv
|
|
rm -rf releasenotes/build
|
|
poetry run sphinx-build -W --keep-going -b html -j auto releasenotes/source releasenotes/build/html
|