From 63f7860434049264df49129b56211b2e00100d13 Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Thu, 7 Mar 2019 15:31:39 +0800 Subject: [ci] If possible, compile with make -jN --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3b66e0e5..939cf8c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -180,7 +180,11 @@ variables: build_scripts: - ./autogen.sh - scan-build $CHECKERS ./configure - - scan-build $CHECKERS --keep-cc -o html-report make + - if [ $CPU_COUNT -gt 1 ]; then + - scan-build $CHECKERS --keep-cc -o html-report make -j $CPU_COUNT + - else + - scan-build $CHECKERS --keep-cc -o html-report make + - fi after_scripts: - if [ ${DISTRO_NAME} == "fedora" ];then -- cgit v1.2.1