From 8fd5bfd325f8dbb4ab218dfeba0d8cfcc8279066 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Tue, 21 Jun 2016 08:54:52 +1000 Subject: travis: fixes for Coverity, don't run normal build for coverity build Signed-off-by: Stewart Smith --- .travis.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4e4ce52..16dd64d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,13 +27,15 @@ env: script: - - (cd opal-ci; ./build-qemu-powernv.sh) - - ./opal-ci/fetch-debian-jessie-installer.sh - - make -j4 all check ; (make clean; cd external/gard && CROSS= make) - - (cd external/pflash; ./build-all-arch.sh) - - make clean && SKIBOOT_GCOV=1 make && SKIBOOT_GCOV=1 make check - - make clean && rm -rf builddir && mkdir builddir && make SRC=`pwd` -f ../Makefile -C builddir - - make clean + - if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then + (cd opal-ci; ./build-qemu-powernv.sh) && + ./opal-ci/fetch-debian-jessie-installer.sh && + make -j4 all check ; (make clean; cd external/gard && CROSS= make) && + (cd external/pflash; ./build-all-arch.sh) && + make clean && SKIBOOT_GCOV=1 make && SKIBOOT_GCOV=1 make check && + make clean && rm -rf builddir && mkdir builddir && make SRC=`pwd` -f ../Makefile -C builddir && + make clean; + fi addons: coverity_scan: @@ -41,6 +43,6 @@ addons: name: "open-power/skiboot" description: "Build submitted via Travis CI" notification_email: stewart@linux.vnet.ibm.com - build_command_prepend: "make clean; cov-configure --comptype gcc --compiler powerpc64-linux-gcc --template; cov-configure --comptype gcc --compiler powerpc64le-linux-gnu-gcc; cov-configure --comptype gcc --compiler arm-linux-gnueabi-gcc; cov-configure --comptype gcc --compiler x86_64-linux-gnu-gcc" + build_command_prepend: "cov-configure --comptype gcc --compiler powerpc64-linux-gcc --template; cov-configure --comptype gcc --compiler powerpc64le-linux-gnu-gcc; cov-configure --comptype gcc --compiler arm-linux-gnueabi-gcc; cov-configure --comptype gcc --compiler x86_64-linux-gnu-gcc" build_command: "make -j4 all check gard pflash-coverity" branch_pattern: coverity_scan -- cgit v1.1