Travis CI: debian build: add clang compiler

Pablo Barciela 2020-04-25 03:43:04 +02:00
parent 93407b893d
commit d0cbaffa60
1 changed files with 8 additions and 0 deletions

View File

@ -115,8 +115,16 @@ build_scripts:
- NOCONFIGURE=1 ./autogen.sh - NOCONFIGURE=1 ./autogen.sh
- scan-build $CHECKERS ./configure --enable-compile-warnings=maximum - scan-build $CHECKERS ./configure --enable-compile-warnings=maximum
- if [ $CPU_COUNT -gt 1 ]; then - if [ $CPU_COUNT -gt 1 ]; then
- if [ ${DISTRO_NAME} == "debian" ];then
- scan-build $CHECKERS --keep-cc --use-cc=clang --use-c++=clang++ -o html-report make -j $CPU_COUNT
- make clean
- fi
- scan-build $CHECKERS --keep-cc -o html-report make -j $CPU_COUNT - scan-build $CHECKERS --keep-cc -o html-report make -j $CPU_COUNT
- else - else
- if [ ${DISTRO_NAME} == "debian" ];then
- scan-build $CHECKERS --keep-cc --use-cc=clang --use-c++=clang++ -o html-report make
- make clean
- fi
- scan-build $CHECKERS --keep-cc -o html-report make - scan-build $CHECKERS --keep-cc -o html-report make
- fi - fi