config/puppet-manifests/tox.ini
Don Penney 6fee40bd23 Update puppet module tox.ini files for puppet-lint
When running "tox -e puppetlint" manually, the tox.ini will
install puppet-lint via gem, but does not automatically install
the json module upon which puppet-lint depends.

This commit adds json to the gem install command.

Change-Id: Ib8b6133395bf76748a8bcac0cb7bd718a89d6d5a
Story: 2004515
Task: 28704
Signed-off-by: Don Penney <don.penney@windriver.com>
2019-01-02 15:27:09 -05:00

34 lines
839 B
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-autoloader_layout-check \
--no-documentation-check
commands =
gem install --no-document json puppet-lint
bash -c "find {toxinidir} -name \*.pp -print0 | xargs -0 puppet-lint --fail-on-warnings {[testenv:puppetlint]skip_tests}"