add separate CHECK_SOURCES build target

This commit is contained in:
Steffen Jaeckel 2017-03-01 14:09:08 +01:00
parent 631a11cd35
commit 4f120531ab
3 changed files with 24 additions and 0 deletions

View File

@ -4,6 +4,10 @@ compiler:
- clang
script: bash "${BUILDSCRIPT}" "${BUILDNAME}" "${BUILDOPTIONS}" "makefile" "-DUSE_LTM -DLTM_DESC -I/usr/include" "/usr/lib/libtommath.a"
env:
- |
BUILDSCRIPT="check_source.sh"
BUILDNAME="CHECK_SOURCES"
BUILDOPTIONS=" "
- |
BUILDSCRIPT="coverage.sh"
BUILDNAME="COVERAGE"

17
check_source.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
# output version
bash printinfo.sh
make clean > /dev/null
if [ -f check-source.pl ] ; then
echo "checking white spaces..."
perl check-source.pl || exit 1
fi
exit 0
# $Source$
# $Revision$
# $Date$

View File

@ -10,6 +10,9 @@ fi
# date
echo "date="`date`
# check sources
bash check_source.sh "CHECK_SOURCES" " " "$1" "$2" "$3" || exit 1
# stock build
bash run.sh "STOCK" " " "$1" "$2" "$3" || exit 1