Makefile: Add 'make check'

One convenient command to run the checks Travis runs on
the code base (less verbose version).
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 d5522169
......@@ -47,3 +47,6 @@ clean:
$(MAKE) -f $(CURDIR)/debian/rules clean || true
rm -rf build/ MANIFEST BUILD BUILDROOT SPECS RPMS SRPMS SOURCES
find . -name '*.pyc' -delete
check:
selftests/checkall
#!/bin/bash
run_rc() {
echo "Running '$1'"
$1
}
run_rc 'inspekt lint'
rc1=$?
echo ""
run_rc 'inspekt indent'
rc2=$?
echo ""
run_rc 'inspekt style'
rc3=$?
echo ""
run_rc 'selftests/run selftests/all'
rc4=$?
exit $rc1 || $rc2 || $rc3 || $rc4
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册