summaryrefslogtreecommitdiff
path: root/check
blob: 8bf30d4c93f809b8447f89f97c5fae8e56d13a2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
# Copyright 2017 Lars Wirzenius

set -eu

title()
{
    printf "\n"
    echo "$@"
    n=77
    for i in $(seq $n)
    do
        printf "%s" -
    done
    printf '\n'
}


title Unit tests
python3 -m CoverageTestRunner --ignore-missing-from=without-tests ick2

if [ -e .git ]
then
    title Copyright statements
    copyright-statement-lint $(git ls-files | grep -Fvxf copyright-exceptions)
fi

title Yarns
yarn yarns/*.yarn \
     --shell python2 \
     --shell-arg '' \
     --shell-library yarns/lib.py \
     --cd-datadir \
     "$@"