Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test beta RPMs #191

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions test/ubi8/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM registry.access.redhat.com/ubi8/ubi:latest as adt

COPY <<EOF /etc/yum.repos.d/aap.repo
[aap25]
name=aap25
baseurl='https://rhsm-pulp.corp.stage.redhat.com/content/beta/layered/rhel$releasever/$basearch/ansible-developer/1-beta/os/'
gpgcheck=0
enabled=1
module_hotfixes=1
EOF

RUN <<EOF
dnf remove -y subscription-manager dnf-plugin-subscription-manager
dnf install -y ansible-dev-tools
dnf clean all
EOF
RUN <<EOF
set -e
echo "Show adt version."
adt --version
echo "Show ansible-creator version."
ansible-creator --version
echo "Show ansible-lint version."
ansible-lint --version
echo "Show ansible-navigator version."
ansible-navigator --version
echo "Show molecule version."
molecule --version
echo "Show ade version."
ade --version
echo "Check if tox recognizes tox-ansible plugin."
tox --version | grep tox-ansible
echo "Check if pytest recognizes pytest-ansible plugin."
pytest-3.11 --version -VV | grep pytest-ansible
EOF
35 changes: 35 additions & 0 deletions test/ubi9/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM registry.access.redhat.com/ubi9/ubi:latest as adt

COPY <<EOF /etc/yum.repos.d/aap.repo
[aap25]
name=aap25
baseurl='https://rhsm-pulp.corp.stage.redhat.com/content/beta/layered/rhel$releasever/$basearch/ansible-developer/1-beta/os/'
gpgcheck=0
enabled=1
module_hotfixes=1
EOF

RUN <<EOF
dnf remove -y subscription-manager dnf-plugin-subscription-manager
dnf install -y ansible-dev-tools
dnf clean all
EOF
RUN <<EOF
set -e
echo "Show adt version."
adt --version
echo "Show ansible-creator version."
ansible-creator --version
echo "Show ansible-lint version."
ansible-lint --version
echo "Show ansible-navigator version."
ansible-navigator --version
echo "Show molecule version."
molecule --version
echo "Show ade version."
ade --version
echo "Check if tox recognizes tox-ansible plugin."
tox --version | grep tox-ansible
echo "Check if pytest recognizes pytest-ansible plugin."
pytest-3.11 --version -VV | grep pytest-ansible
EOF
11 changes: 11 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ minversion = 4.0
envlist =
lint
docs
ubi8
ubi9
isolated_build = True
requires =
tox>=4.0.12
Expand Down Expand Up @@ -35,3 +37,12 @@ deps = pre-commit>=1.18.1
extras =
skip_install = true
usedevelop = false

[testenv:{ubi8,ubi9}]
description = Building container using beta RPMs (requires VPN) {envname}
changedir = test/{envname}
commands =
podman build --tag adt-{envname} {posargs} .
podman run -it adt-{envname} adt --version
allowlist_externals =
podman