run tests on commit

This commit is contained in:
ed 2021-06-01 05:49:41 +02:00
parent d6f516b34f
commit 273ca0c8da
5 changed files with 54 additions and 19 deletions

12
scripts/run-tests.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
set -ex
pids=()
for py in python{2,3}; do
$py -m unittest discover -s tests >/dev/null &
pids+=($!)
done
for pid in ${pids[@]}; do
wait $pid
done