skyline-apiserver/tox.ini
zhu.boxiang 7b61aeee13 Fix: Fail to publish package to tarballs
1. Use tox to make packages.
2. Change the way to install nodejs and yarn with nvm.
3. Update the skyline-console submodule

Change-Id: I363ec0dcda428701be2260893ebe97aa3dd77b5f
2021-10-08 16:15:44 +08:00

42 lines
821 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
setenv =
IGNORE_JS = True
passenv = IGNORE_JS
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]
setenv =
IGNORE_JS = False
commands =
make package