Add clang static analyzer to continuous integration checks. (#162)

This commit is contained in:
Jonathan Hui
2016-06-17 09:54:44 -07:00
committed by GitHub
parent 21ca8d808e
commit 28d3cc342f
3 changed files with 12 additions and 0 deletions
+3
View File
@@ -41,6 +41,9 @@ matrix:
- env: BUILD_TARGET="pretty-check"
compiler: clang
os: linux
- env: BUILD_TARGET="scan-build"
compiler: clang
os: linux
- env: BUILD_TARGET="posix"
compiler: clang
os: linux
+4
View File
@@ -46,6 +46,10 @@ cd /tmp || die
export PATH=/tmp/gcc-arm-none-eabi-4_9-2015q3/bin:$PATH || die
arm-none-eabi-gcc --version || die
}
[ $BUILD_TARGET != scan-build ] || {
sudo apt-get install clang || die
}
}
[ $TRAVIS_OS_NAME != osx ] || {
+5
View File
@@ -50,3 +50,8 @@ set -x
export PATH=/tmp/gcc-arm-none-eabi-4_9-2015q3/bin:$PATH || die
make -f examples/cc2538/Makefile-cc2538 || die
}
[ $BUILD_TARGET != scan-build ] || {
./configure --with-examples=posix --enable-cli
scan-build --status-bugs -v make
}