From 80abc61ac4012394652ab08eeee1c3b92d9d3a18 Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Thu, 7 Mar 2019 11:08:33 +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 5905a1d4..5e32493e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -173,7 +173,11 @@ build_scripts: - fi - ./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