community.docker/.azure-pipelines/scripts/setup-nox.sh
2025-12-17 22:52:53 +01:00

19 lines
559 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
set -o pipefail -e
declare -a SESSIONS
if [ "$1" != "" ]; then
IFS=' ' read -ra SESSIONS <<< "$1"
SESSIONS=('--sessions' "${SESSIONS[@]}")
fi
export FORCE_COLOR=1
export ANTSIBULL_NOX_IGNORE_INSTALLED_COLLECTIONS=true
echo "Set up nox environments"
nox --verbose --install-only "${SESSIONS[@]}" 2>&1 | "$(dirname "$0")/time-command.py"