forked from ansible/awx-ee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
34 lines (29 loc) · 773 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[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