Browse Source

add separate CHECK_SOURCES build target

Steffen Jaeckel 8 years ago
parent
commit
4f120531ab
3 changed files with 24 additions and 0 deletions
  1. 4 0
      .travis.yml
  2. 17 0
      check_source.sh
  3. 3 0
      testme.sh

+ 4 - 0
.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"

+ 17 - 0
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$

+ 3 - 0
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