2023-09-07 18:29:53 +03:00

29 lines
465 B
Bash
Executable File

#!/bin/bash
#
# Simple wrapper for executing behave within Docker.
#
# ENVIRONMENT VARIABLES:
#
# - REQUIREMENTS_PATH: requirements fullpath;
# default = "requirements.txt"
#
#
# install Python packages for testing purpose, if any.
#
if [ -z "$REQUIREMENTS_PATH" ]; then
REQUIREMENTS_PATH=requirements.txt
fi
if [ -f "$REQUIREMENTS_PATH" ]; then
pip3 install --no-cache-dir -r $REQUIREMENTS_PATH
fi
#
# execute behave
#
exec python app.py