65eaf645f4
Zuul checks out the dependant projects by their repo names. Repo checks out the project directory structure based on the labels in the manifest. Currently these directories have different names and so tox passes when run by zuul, but fails when run in a developer env. This submission uses an env variable: "STX_PREFIX" to make both envs able to run tox. Story: 2004515 Task: 30664 Change-Id: I06cefab7422f53ccc0b8af30ca06945311cec70e Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
35 lines
896 B
INI
35 lines
896 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-modules-wrs
|
|
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
|
|
bash -c "find {toxinidir} -name \*.pp -print0 | xargs -0 puppet-lint --fail-on-warnings {[testenv:puppetlint]skip_tests}"
|
|
|