23 lines
645 B
Bash
Executable File
23 lines
645 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
BIN="${1:-.venv/bin}"
|
|
|
|
"$BIN/pip" install -e ".[dev]"
|
|
"$BIN/ansible-galaxy" collection install -r ansible/requirements.yml
|
|
"$BIN/pre-commit" install
|
|
"$BIN/pre-commit" install --hook-type commit-msg
|
|
"$BIN/pre-commit" install --hook-type pre-push
|
|
|
|
echo ""
|
|
echo "Setup complete."
|
|
echo "Activate the virtual environment with one of:"
|
|
echo " source .venv/bin/activate (generic)"
|
|
echo " source activate.sh (bash)"
|
|
echo " source activate.fish (fish)"
|
|
echo " source activate.zsh (zsh)"
|
|
|
|
# Verification
|
|
"$BIN/grm" --version 2>/dev/null || true
|
|
"$BIN/pre-commit" --version 2>/dev/null || true
|