Steffen Jaeckel пре 8 година
родитељ
комит
742b4cee78
2 измењених фајлова са 13 додато и 0 уклоњено
  1. 4 0
      .travis.yml
  2. 9 0
      scan_build.sh

+ 4 - 0
.travis.yml

@@ -32,6 +32,10 @@ env:
     BUILDSCRIPT="check_source.sh"
     BUILDNAME="CHECK_SOURCES"
     BUILDOPTIONS=" "
+  - |
+    BUILDSCRIPT="scan_build.sh"
+    BUILDNAME="SCAN_BUILD"
+    BUILDOPTIONS=" "
   - |
     BUILDSCRIPT="coverage.sh"
     BUILDNAME="COVERAGE"

+ 9 - 0
scan_build.sh

@@ -0,0 +1,9 @@
+#!/bin/bash
+[ "$TRAVIS_CI" != "" ] && sudo apt-get install clang -y -qq || true
+
+# output version
+bash printinfo.sh
+
+make clean > /dev/null
+
+scan-build make -f makefile.unix all