From d9212baa45e2e011e3c55f4d8d35a20fd869e808 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0tetiar?= Date: Mon, 5 Aug 2019 10:50:08 +0200 Subject: [PATCH] circleci: make logs of build failures more readable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Due to concurrent build, it's currently not that easy to find the proper reason for the package build failure, so let's just build the failing package with -j1 in order to provide more human readable build log failures. Ref: https://github.com/openwrt/packages/pull/9584#issuecomment-518038631 Signed-off-by: Petr Å tetiar --- .circleci/config.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5bcc68b288..afc1512355 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -143,7 +143,11 @@ jobs: for PKG in $PKGS ; do echo_blue "===+ Building: $PKG" - make "package/$PKG/compile" -j3 V=s + make "package/$PKG/compile" -j3 V=s || { + RET=$? + echo_red "===+ Building: $PKG failed, rebuilding with -j1 for human readable error log" + make "package/$PKG/compile" -j1 V=s; exit $RET + } done - store_artifacts: -- 2.30.2