travis: llvm/clang check: compile these job swith clang instead of gcc for better performance
This commit is contained in:
parent
e21c3dc50a
commit
bea1310524
|
@ -22,9 +22,9 @@ matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
# exclude clang checking with clang binary, not needed
|
# exclude clang checking with clang binary, not needed
|
||||||
exclude:
|
exclude:
|
||||||
- compiler: clang
|
- compiler: gcc
|
||||||
env: SRCDIR=build CHECK_CLANG=yes VERIFY=1
|
env: SRCDIR=build CHECK_CLANG=yes VERIFY=1
|
||||||
- compiler: clang
|
- compiler: gcc
|
||||||
env: SRCDIR=build CHECK_LLVM=yes VERIFY=1
|
env: SRCDIR=build CHECK_LLVM=yes VERIFY=1
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
|
@ -34,9 +34,9 @@ before_install:
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# download clang git, compile cppcheck, run cppcheck on clang code to look for crashes in cppcheck. if this is done, terminate build
|
# download clang git, compile cppcheck, run cppcheck on clang code to look for crashes in cppcheck. if this is done, terminate build
|
||||||
- if [[ "$CHECK_CLANG" == "yes" ]] && [[ "$CC" == "gcc" ]]; then wget "https://github.com/llvm-mirror/clang/archive/bcaf7f2abe47b0dab055f1a0ec011ed9c2a3d3ea.zip" & make -j 4 & wait; unzip bcaf7f2abe47b0dab055f1a0ec011ed9c2a3d3ea.zip > /dev/null; touch /tmp/clang.cppcheck; cd ./clang-bcaf7f2abe47b0dab055f1a0ec011ed9c2a3d3ea ; ../cppcheck . --max-configs=1 --enable=all --inconclusive --exception-handling -itest/Analysis/new.cpp -iINPUTS -itest/Driver/Inputs/gen-response.c -itest/Index/index-many-logical-ops.c -itest/Sema/many-logical-ops.c -j 2 |& tee /tmp/clang.cppcheck; cd ../ ; echo "CLANG" ; ! grep "process crashed with signal\|Internal error\. compiled" /tmp/clang.cppcheck; exit; fi
|
- if [[ "$CHECK_CLANG" == "yes" ]] && [[ "$CC" == "clang" ]]; then wget "https://github.com/llvm-mirror/clang/archive/bcaf7f2abe47b0dab055f1a0ec011ed9c2a3d3ea.zip" & make -j 4 & wait; unzip bcaf7f2abe47b0dab055f1a0ec011ed9c2a3d3ea.zip > /dev/null; touch /tmp/clang.cppcheck; cd ./clang-bcaf7f2abe47b0dab055f1a0ec011ed9c2a3d3ea ; ../cppcheck . --max-configs=1 --enable=all --inconclusive --exception-handling -itest/Analysis/new.cpp -iINPUTS -itest/Driver/Inputs/gen-response.c -itest/Index/index-many-logical-ops.c -itest/Sema/many-logical-ops.c -j 2 |& tee /tmp/clang.cppcheck; cd ../ ; echo "CLANG" ; ! grep "process crashed with signal\|Internal error\. compiled" /tmp/clang.cppcheck; exit; fi
|
||||||
# check llvm as well
|
# check llvm as well
|
||||||
- if [[ "$CHECK_LLVM" == "yes" ]] && [[ "$CC" == "gcc" ]]; then wget "https://github.com/llvm-mirror/llvm/archive/7733e74e5454d6f18da28c06be917c1e73d12d01.zip" & make -j 4 & wait; unzip 7733e74e5454d6f18da28c06be917c1e73d12d01.zip > /dev/null; touch /tmp/llvm.cppcheck; cd ./llvm-7733e74e5454d6f18da28c06be917c1e73d12d01 ; ../cppcheck . --max-configs=1 --enable=all --inconclusive --exception-handling -ilib/Target/PowerPC/PPCISelLowering.cpp -j 2 |& tee /tmp/llvm.cppcheck; cd ../ ; echo "LLVM " ; ! grep "process crashed with signal\|Internal error\. compiled" /tmp/llvm.cppcheck; exit; fi
|
- if [[ "$CHECK_LLVM" == "yes" ]] && [[ "$CC" == "clang" ]]; then wget "https://github.com/llvm-mirror/llvm/archive/7733e74e5454d6f18da28c06be917c1e73d12d01.zip" & make -j 4 & wait; unzip 7733e74e5454d6f18da28c06be917c1e73d12d01.zip > /dev/null; touch /tmp/llvm.cppcheck; cd ./llvm-7733e74e5454d6f18da28c06be917c1e73d12d01 ; ../cppcheck . --max-configs=1 --enable=all --inconclusive --exception-handling -ilib/Target/PowerPC/PPCISelLowering.cpp -j 2 |& tee /tmp/llvm.cppcheck; cd ../ ; echo "LLVM " ; ! grep "process crashed with signal\|Internal error\. compiled" /tmp/llvm.cppcheck; exit; fi
|
||||||
# check with TEST_MATHLIB_VALUE enabled
|
# check with TEST_MATHLIB_VALUE enabled
|
||||||
- touch lib/mathlib.cpp test/testmathlib.cpp
|
- touch lib/mathlib.cpp test/testmathlib.cpp
|
||||||
- make test -j4 CPPFLAGS=-DTEST_MATHLIB_VALUE
|
- make test -j4 CPPFLAGS=-DTEST_MATHLIB_VALUE
|
||||||
|
|
Loading…
Reference in New Issue