Skip to content

Commit

Permalink
Merge pull request #84 from stackhpc/upstream/yoga-2023-01-02
Browse files Browse the repository at this point in the history
Synchronise yoga with upstream
  • Loading branch information
markgoddard authored Jan 3, 2023
2 parents 9c9abf5 + 089094c commit 2bc7a0e
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
[tox]
minversion = 3.1
envlist = py3,pep8
skipsdist = True
ignore_basepython_conflict = True

[testenv]
basepython = python3
usedevelop = True
passenv =
HOME
whitelist_externals =
allowlist_externals =
bash
make
python3
rm
setenv =
VIRTUAL_ENV={envdir}
Expand All @@ -32,12 +33,12 @@ deps =
-r{toxinidir}/doc/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
{toxinidir}/tools/run-bashate.sh
bash {toxinidir}/tools/run-bashate.sh
flake8 {posargs} kayobe
# Check the *.rst files
# We use a thin wrapper around doc8 currently, which has support for sphinx
# directives.
{toxinidir}/tools/sphinx8 README.rst CONTRIBUTING.rst doc/source --ignore D001
python3 {toxinidir}/tools/sphinx8 README.rst CONTRIBUTING.rst doc/source --ignore D001
yamllint etc/kayobe

[testenv:venv]
Expand All @@ -53,10 +54,10 @@ commands = {posargs}
sitepackages = True
commands =
# Install ansible role dependencies from Galaxy.
{toxinidir}/tools/ansible-galaxy-retried.sh install \
bash {toxinidir}/tools/ansible-galaxy-retried.sh install \
-r {toxinidir}/requirements.yml \
-p {toxinidir}/ansible/roles
{toxinidir}/tools/test-ansible.sh {posargs}
bash {toxinidir}/tools/test-ansible.sh {posargs}

[testenv:molecule]
deps =
Expand All @@ -65,11 +66,9 @@ deps =
#-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/yoga}
-r{toxinidir}/requirements.txt
-r{toxinidir}/molecule-requirements.txt
whitelist_externals =
bash
commands =
# Install ansible role dependencies from Galaxy.
{toxinidir}/tools/ansible-galaxy-retried.sh install \
bash {toxinidir}/tools/ansible-galaxy-retried.sh install \
-r {toxinidir}/requirements.yml \
-p {toxinidir}/ansible/roles
bash -c "source {envdir}/bin/activate && {toxinidir}/tools/test-molecule.sh {posargs}"
Expand All @@ -80,7 +79,7 @@ commands = /bin/bash -c "ansible-lint {toxinidir}/ansible/*.yml"
[testenv:ansible-syntax]
commands =
# Install ansible role dependencies from Galaxy.
{toxinidir}/tools/ansible-galaxy-retried.sh install \
bash {toxinidir}/tools/ansible-galaxy-retried.sh install \
-r {toxinidir}/requirements.yml \
-p {toxinidir}/ansible/roles
# Perform an Ansible syntax check. Skip some playbooks which require extra
Expand Down Expand Up @@ -119,7 +118,6 @@ commands =
whereto doc/source/_extra/.htaccess doc/test/redirect-tests.txt

[testenv:pdf-docs]
whitelist_externals = make
deps = {[testenv:docs]deps}
commands =
rm -rf doc/build/pdf
Expand Down

0 comments on commit 2bc7a0e

Please sign in to comment.