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

shopt -s globstar

mypy -p pypaste || exit $?

flake8 pypaste/**.py || exit $?

if [[ ! -d build ]]; then
    meson setup build || exit $?
fi

destdir=$(mktemp -d)

meson install --destdir=${destdir} -C build || exit $?

tree ${destdir}