aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml19
-rw-r--r--Makefile.main4
2 files changed, 18 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 1a6f63b..b9f11cc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,13 +15,22 @@ env:
global:
- CROSS=/opt/cross/gcc-4.8.0-nolibc/powerpc64-linux/bin/powerpc64-linux-
- HOSTCC=gcc-4.8
+ # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
+ # via the "travis encrypt" command using the project repo's public key
+ - secure: "MpNEGFa1VrF/vsQq24n5UgfRbz1wVC6B8mubFnyK4gX0IuQ9xhWuTzMLUQF9UJxe5jnC2DTmVUvYTYN/hggw+PpYwbOOAE0QGR5pmPHA4PSRmc5pxt1q18/sv7EPFw66GFyWJq94nWjpigyKQ8KGtA67j1xFqrDoS43OA76WZgo="
script:
- - make && make check
+ - make -j4 all check ; (make clean; cd external/gard && make) ; (make clean; cd external/pflash && make)
- 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
- - pushd external/gard && make
- - popd
- - pushd external/pflash && make
- - popd
+
+addons:
+ coverity_scan:
+ project:
+ 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"
+ build_command: "make -j4 all check gard"
+ branch_pattern: coverity_scan
diff --git a/Makefile.main b/Makefile.main
index 56ec139..a5eb01e 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -145,6 +145,10 @@ include $(SRC)/libc/Makefile.inc
include $(SRC)/ccan/Makefile.inc
include $(SRC)/$(DEVSRC)/Makefile.inc
+# hack for travis-ci and coverity
+gard:
+ (cd external/gard; make)
+
all: $(SUBDIRS) $(TARGET).lid $(TARGET).map extract-gcov
OBJS := $(ASM) $(CORE) $(HW) $(PLATFORMS) $(LIBFDT) $(LIBFLASH)