-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add travis jobs for scan-build on osx and linux.
- Loading branch information
Showing
2 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh -x | ||
|
||
CLANG_CHECKER_NAME=checker-278 | ||
|
||
cd ~ | ||
|
||
if [ ! -d checker-278 ] | ||
then | ||
curl http://clang-analyzer.llvm.org/downloads/checker-278.tar.bz2 -o ~/$CLANG_CHECKER_NAME.tar.bz2 | ||
tar -xf ~/$CLANG_CHECKER_NAME.tar.bz2 | ||
fi | ||
|
||
export SCAN_BUILD_PATH=~/$CLANG_CHECKER_NAME/bin/scan-build | ||
export PATH=$PATH:$SCAN_BUILD_PATH/bin | ||
|
||
cd - |