Initial commit
This commit is contained in:
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
export ANSIBLE_ROLES_PATH="$(dirname "$PWD")${ANSIBLE_ROLES_PATH:+:$ANSIBLE_ROLES_PATH}"
|
||||
python3 -m unittest discover -s tests -p test_network.py
|
||||
ansible-playbook -i localhost, playbooks/deploy-eom.yml --syntax-check
|
||||
ansible-playbook -i localhost, tests/test.yml
|
||||
|
||||
# This real deployment entrypoint must fail before any Kubernetes task is run.
|
||||
log=$(mktemp)
|
||||
trap 'rm -f "$log"' EXIT HUP INT TERM
|
||||
if ansible-playbook -i localhost, playbooks/deploy-eom.yml > "$log" 2>&1; then
|
||||
echo 'Deployment accepted missing required inputs' >&2
|
||||
exit 1
|
||||
fi
|
||||
grep -q 'Supply eom_luanti_wasm_web_image' "$log"
|
||||
if grep -q 'TASK \[ansible-role-luanti-wasm : Create Luanti namespace\]' "$log"; then
|
||||
echo 'Missing inputs reached Kubernetes tasks' >&2
|
||||
exit 1
|
||||
fi
|
||||
echo 'Luanti WASM offline checks passed'
|
||||
Reference in New Issue
Block a user