summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-09-24 14:38:20 +0300
committerLars Wirzenius <liw@liw.fi>2017-09-24 14:38:20 +0300
commit17b5069a8a4d2f7bdfa9cb2617bad739d5b22fc3 (patch)
tree14680592138c6b8381586becdf9f140a530ea729 /check
parent55ab1c78a6fe42c6e0857fa82cab248dcd2f0172 (diff)
downloadick2-17b5069a8a4d2f7bdfa9cb2617bad739d5b22fc3.tar.gz
Add: copyright statements, check they exist
Diffstat (limited to 'check')
-rwxr-xr-xcheck22
1 files changed, 22 insertions, 0 deletions
diff --git a/check b/check
index 269c1b9..8bf30d4 100755
--- a/check
+++ b/check
@@ -1,9 +1,31 @@
#!/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 '' \