File size: 459 Bytes
a2be137
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
set -euo pipefail

if [ ! -f "tower.py" ]; then
  printf 'Run scripts/verify.sh from the repository root.\n' >&2
  exit 1
fi

printf '==> Syntax check\n'
python -m py_compile tower.py

printf '\n==> Status command\n'
python tower.py status

if [ -d "tests" ]; then
  printf '\n==> Unit tests\n'
  python -m unittest discover -q
else
  printf '\n==> Unit tests\nNo tests directory present; skipping\n'
fi

printf '\nVerification passed.\n'