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

18 lines
491 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
SESSIONS=""
if [ "$1" != "" ]; then
SESSIONS="--sessions $1"
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"