config/puppet-manifests/tox.ini

41 lines
1.0 KiB
INI

#
# Copyright (c) 2018 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
toxworkdir = /tmp/{env:USER}_puppet-manifests
envlist = puppetlint
skipsdist = True
[testenv]
recreate = True
[testenv:puppetlint]
deps =
whitelist_externals =
gem
bash
setenv =
GEM_HOME = {envdir}
GEM_PATH = {envdir}
skip_tests = \
--no-140chars \
--no-autoloader_layout-check \
--no-case_without_default \
--no-documentation-check \
--no-ensure_first_param \
--no-inherits_across_namespaces \
--no-parameter_order \
--no-single_quote_string_with_variables \
--no-variable_is_lowercase-check
commands =
gem install --no-document puppet-lint
bash -c "find {toxinidir} -name \*.pp -print0 | xargs -0 puppet-lint --fail-on-warnings {[testenv:puppetlint]skip_tests}"