mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
22 lines
471 B
Bash
22 lines
471 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# sets up the venv and runs the integration test
|
||
|
|
||
|
MYDIR="$(dirname "$0")"
|
||
|
|
||
|
if [ ! -d ".venv" ]; then
|
||
|
echo "Setting up virtualenv"
|
||
|
python -m venv .venv
|
||
|
# shellcheck disable=SC1091
|
||
|
source .venv/bin/activate
|
||
|
pip install --upgrade pip
|
||
|
pip install poetry pytest ruff mypy black
|
||
|
echo "Installing in virtualenv"
|
||
|
pip install -e pykanidm
|
||
|
fi
|
||
|
|
||
|
# shellcheck disable=SC1091
|
||
|
source .venv/bin/activate
|
||
|
|
||
|
python "${MYDIR}/integration_test.py"
|