Files

12 lines
399 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
set -euo pipefail
root=$(cd -- "$(dirname -- "$0")" && pwd)
cd "$root"
for script in ./*.sh scripts/*.sh; do bash -n "$script"; done
python3 -m unittest discover -s tests -v
./render.sh > /tmp/factorio-rendered.yaml
python3 tests/validate.py /tmp/factorio-rendered.yaml
if [[ ${FACTORIO_SMOKE_TEST:-false} == true ]]; then
python3 tests/smoke.py /tmp/factorio-rendered.yaml
fi