mirror of
https://github.com/espressif/openthread.git
synced 2026-07-26 22:09:05 +00:00
Add clang static analyzer to continuous integration checks. (#162)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 ] || {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user