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

cephadm-ansible-prs: make tox 'not run everything' #2002

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
13 changes: 10 additions & 3 deletions cephadm-ansible-prs/build/build
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
#!/bin/bash

# the following two methods exist in scripts/build_utils.sh
# shellcheck disable=SC2034
pkgs=( "tox" )
TEMPVENV=$(create_venv_dir)
VENV=${TEMPVENV}/bin
set_centos_python3_version "python3.9"
install_python_packages $TEMPVENV "pkgs[@]" "pip==22.0.4"
install_python_packages "$TEMPVENV" "pkgs[@]" "pip==22.0.4"

# XXX this might not be needed
source $VENV/activate
# shellcheck source=/dev/null
source "${VENV}"/activate

WORKDIR=$(mktemp -td tox.XXXXXXXXXX)

Expand All @@ -19,4 +21,9 @@ update_vagrant_boxes

rm -rf "${HOME}"/ansible/facts/*

"${VENV}"/tox --workdir="${TEMPVENV}" -c tox.ini -r -v -- --provider=libvirt
tox_envs="$("$VENV"/tox -l)"

for tox_env in "${tox_envs[@]}"
do
"${VENV}"/tox --workdir="${TEMPVENV}" -c tox.ini -r -v -e "${tox_env}" -- --provider=libvirt
done