35 lines
773 B
INI
35 lines
773 B
INI
[tox]
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
install_command = pip install {opts} {packages}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
[testenv:podman]
|
|
passenv =
|
|
HOME
|
|
whitelist_external =
|
|
true
|
|
commands =
|
|
/bin/bash -c "podman rmi quay.io/ansible/awx-ee:latest || true"
|
|
ansible-builder build -v3 -c . -t quay.io/ansible/awx-ee {posargs}
|
|
|
|
|
|
[testenv:docker]
|
|
passenv =
|
|
HOME DOCKER_BUILDKIT
|
|
whitelist_external =
|
|
true
|
|
commands =
|
|
/bin/bash -c "podman rmi quay.io/ansible/awx-ee:latest || true"
|
|
ansible-builder build -v3 -c . -t quay.io/ansible/awx-ee {posargs} --container-runtime=docker
|
|
|
|
[testenv:check-diff]
|
|
passenv =
|
|
{[testenv:docker]passenv}
|
|
commands =
|
|
{[testenv:docker]commands}
|
|
{toxinidir}/tools/check_ansible_builder_changed.sh
|