summaryrefslogtreecommitdiff
path: root/check.sh
blob: e667d316dffb6ea0acfb38187792d1396546d2c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

mypy -p pypaste || exit $?

sources=($(find pypaste -type f))

flake8 ${sources[@]} || exit $?

black --check ${sources[@]} || exit $?

if [[ ! -d build ]]; then
    meson setup build -Dserver=enabled -Dclient=enabled -Dtests=enabled || exit $?
fi

meson test --verbose "$@" -C build || exit $?