File indexing completed on 2024-05-19 05:27:33

0001 #! /bin/sh
0002 
0003 # SPDX-FileCopyrightText: 2010 Kevin Ottens <ervin@kde.org>
0004 # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 
0006 # Looking for the .git directory to be sure we're
0007 # at the top level of the working directory
0008 
0009 while ! test -e ".git"; do
0010         cd ..
0011         if test "$PWD" = "/"; then
0012                 echo "We're not in a git working directory!"
0013                 exit 1
0014         fi
0015 done
0016 
0017 project=`basename $PWD`
0018 
0019 
0020 echo "Starting quality checks for $project"
0021 
0022 echo "Automated Tests"
0023 makeobj test || exit 1
0024 
0025 echo "CppCheck"
0026 ./scripts/cppcheck.sh