diff options
author | Paul Adenot <[email protected]> | 2016-07-25 14:52:37 +0200 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2016-07-29 14:57:18 +0200 |
commit | a8b016f197d6354894c1c05a5d08450194207eff (patch) | |
tree | e5ab4d2464e72c471441079c04dd6fc2d1eed69c /scan-build-install.sh | |
parent | e4074131e4d422bfe260d29ab0a49fc368406ef4 (diff) | |
download | cubeb-a8b016f197d6354894c1c05a5d08450194207eff.tar.gz cubeb-a8b016f197d6354894c1c05a5d08450194207eff.zip |
Add travis jobs for scan-build on osx and linux.
Diffstat (limited to 'scan-build-install.sh')
-rwxr-xr-x | scan-build-install.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scan-build-install.sh b/scan-build-install.sh new file mode 100755 index 0000000..83c8b77 --- /dev/null +++ b/scan-build-install.sh @@ -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 - |