]> granicus.if.org Git - esp-idf/commitdiff
CI: Work around problem with running the initial 'make clean' in parallel (#18)
authorAnton Maklakov <anton@espressif.com>
Fri, 30 Jun 2017 07:14:02 +0000 (15:14 +0800)
committerAnton Maklakov <anton@espressif.com>
Fri, 7 Jul 2017 03:03:25 +0000 (11:03 +0800)
    Just don't pass '-j' to the 'make clean' command

tools/ci/build_examples.sh
tools/ci/test_build_system.sh

index c87c141a72d0327812e4cba4b4f4422f09fd4e03..14a8e9b425090f1e385c3125ba3c4daddf730784 100755 (executable)
@@ -114,11 +114,11 @@ build_example () {
         # build non-verbose first
         local BUILDLOG=$(mktemp -t examplebuild.XXXX.log)
         (
-            make clean defconfig &> >(tee -a "${BUILDLOG}") &&
+            MAKEFLAGS= make clean defconfig &> >(tee -a "${BUILDLOG}") &&
             make all &> >(tee -a "${BUILDLOG}")
         ) || {
             RESULT=$?; FAILED_EXAMPLES+=" ${EXAMPLE_NAME}"
-            make V=1 clean defconfig && make V=1 # verbose output for errors
+            make MAKEFLAGS= V=1 clean defconfig && make V=1 # verbose output for errors
         }
     popd
 
index c4da2f8e90e6ac321b263bfb090b3c79a588fe56..0d4f36e4d44406d178b64a9cbd068da4a00dc497 100755 (executable)
@@ -49,7 +49,7 @@ function run_tests()
     make defconfig || exit $?
 
     print_status "Try to clean fresh directory..."
-    make clean || exit $?
+    MAKEFLAGS= make clean || exit $?
 
     BOOTLOADER_BINS="bootloader/bootloader.elf bootloader/bootloader.bin"
     APP_BINS="app-template.elf app-template.bin"