浏览代码

add clang scan-build

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