590ae77b35
Running tox locally or through zuul would fail with puppet-lint warnings. This was introduced by puppet-lint 2.4.0 and still exists in 2.4.1 2.3.6 works as expected, so now we are clamping to that version. Change-Id: I19a1d4df2b299e4dcb581df43874d8e1866b3962 Closes-Bug: 1847534 Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
35 lines
903 B
INI
35 lines
903 B
INI
#
|
|
# Copyright (c) 2018-2019 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-modules
|
|
envlist = puppetlint
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
recreate = True
|
|
|
|
[testenv:puppetlint]
|
|
# Note: centos developer env requires ruby-devel
|
|
# Ubuntu developer env requires ruby-dev
|
|
deps =
|
|
whitelist_externals =
|
|
gem
|
|
bash
|
|
setenv =
|
|
GEM_HOME = {envdir}
|
|
GEM_PATH = {envdir}
|
|
skip_tests = \
|
|
--no-documentation-check
|
|
commands =
|
|
gem install --no-document json puppet-lint:2.3.6
|
|
bash -c "find {toxinidir} -name \*.pp -print0 | xargs -0 puppet-lint --fail-on-warnings {[testenv:puppetlint]skip_tests}"
|
|
|