#!/bin/sh # Ensure no doxygen errors if which doxygen >/dev/null 2>/dev/null; then doxygen || exit 1 cd cpp doxygen || exit 1 cd .. fi make -j`nproc` test || exit 1 if [ "$NO_TIDY" = '' ] && which clang-tidy >/dev/null; then for file in pom.c cpp/pom.cpp; do if git diff --name-status HEAD -- $file | grep -q 'M\s*'"$file"; then echo "clang-tidy $file..." clang-tidy $file || exit 1 fi done fi