66 lines
2.1 KiB
INI
66 lines
2.1 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv:bindep]
|
|
basepython = python3
|
|
# 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.
|
|
deps = bindep
|
|
commands = bindep test
|
|
|
|
[testenv:shellcheck]
|
|
basepython = python3
|
|
# 'shellcheck' is not an Python package, so it can be run w\o
|
|
# virtual env. But tox is a usable wrapper to run any kind of tests -
|
|
# let's use it for common test-run as well - for unification purposes.
|
|
commands = {toxinidir}/tools/jenkins/shellcheck.sh {toxinidir}
|
|
|
|
[testenv:yaml-syntaxcheck]
|
|
basepython = python3
|
|
deps = yamllint
|
|
commands = {toxinidir}/tools/jenkins/yamllint.sh {toxinidir}
|
|
|
|
[testenv:linters]
|
|
basepython = python3
|
|
# linters env - it's a combination of check's (usually syntax)
|
|
# for aggregate non-destructive run's. Used only in openstack-infra ci for
|
|
# decrease resource usage.
|
|
# Current duplicate list:
|
|
# shellcheck
|
|
# yaml-syntaxcheck
|
|
#
|
|
# We need to suppress exit code from 'command1', to be able run 'command2';
|
|
# Otherwise, if some command failed - exit code from tox itself will be 1
|
|
ignore_errors=True
|
|
deps = yamllint
|
|
commands =
|
|
{toxinidir}/tools/jenkins/shellcheck.sh {toxinidir}
|
|
{toxinidir}/tools/jenkins/yamllint.sh {toxinidir}
|
|
|
|
[unit_testenv]
|
|
basepython = python3
|
|
# *unittest tox-test's *require* pre-installed and
|
|
# configured murano-test-runner.
|
|
# More info: http://docs.openstack.org/developer/murano/draft/appdev-guide/app_unit_tests.html
|
|
# Please, use only lowercase in env names - standard of openstack-infra CI
|
|
passenv = OS_*
|
|
setenv =
|
|
WORKSPACE = {toxinidir}
|
|
ARTIFACTS_DIR = {toxinidir}/artifacts/
|
|
APPS_ROOT = /
|
|
UPLOAD_TO_OS = true
|
|
|
|
[testenv:refstackclient-unittest]
|
|
basepython = python3
|
|
passenv = OS_*
|
|
setenv =
|
|
{[unit_testenv]setenv}
|
|
APP_PREFIX = org.openstack.
|
|
PACKAGES_LIST = RefStackClient
|
|
commands =
|
|
/bin/bash -c '{toxinidir}/tools/jenkins/apps_uploader.sh'
|
|
murano-test-runner org.openstack.RefStackClient
|