From 4f120531ab5f97d412e1bb223f4b8615b607bfab Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Wed, 1 Mar 2017 14:09:08 +0100 Subject: [PATCH] add separate CHECK_SOURCES build target --- .travis.yml | 4 ++++ check_source.sh | 17 +++++++++++++++++ testme.sh | 3 +++ 3 files changed, 24 insertions(+) create mode 100755 check_source.sh diff --git a/.travis.yml b/.travis.yml index 287a585..3b95cb2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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" diff --git a/check_source.sh b/check_source.sh new file mode 100755 index 0000000..b1e9afd --- /dev/null +++ b/check_source.sh @@ -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$ diff --git a/testme.sh b/testme.sh index d50fae5..c1b3c23 100755 --- a/testme.sh +++ b/testme.sh @@ -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