[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 05/14] travis.yml: Detach build and test steps
From: |
Alex Bennée |
Subject: |
[PULL v2 05/14] travis.yml: Detach build and test steps |
Date: |
Thu, 9 Jan 2020 14:18:49 +0000 |
From: Wainer dos Santos Moschetta <address@hidden>
Currently build and test commands are a single step in a
Travis's `script` block. In order to see the output
of the tests one needs to scroll down the log to find where
the build messages ended and the limit is not clear. If
they were in different steps then Travis would print the
result build command, which can be easily grep'ed.
So this change is made to detach those commands
to ease the visualization of the output.
Note that all steps on the `script` block is executed regardless
if one previous has failed. To overcome it, let's save the
return code of the build then check whether succeed or failed on
the test step.
Signed-off-by: Wainer dos Santos Moschetta <address@hidden>
Signed-off-by: Alex Bennée <address@hidden>
Message-Id: <address@hidden>
diff --git a/.travis.yml b/.travis.yml
index 93838bf0f8b..848a2714efe 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -94,7 +94,8 @@ before_script:
- mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
- ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit
1; }
script:
- - make -j3 && travis_retry ${TEST_CMD}
+ - BUILD_RC=0 && make -j3 || BUILD_RC=$?
+ - if [ "$BUILD_RC" -eq 0 ] ; then travis_retry ${TEST_CMD} ; else $(exit
$BUILD_RC); fi
after_script:
- if command -v ccache ; then ccache --show-stats ; fi
--
2.20.1
- [PULL v2 00/14] testing fixes and semihosting console support, Alex Bennée, 2020/01/09
- [PULL v2 02/14] tests/vm: update openbsd to release 6.6, Alex Bennée, 2020/01/09
- [PULL v2 01/14] hw/i386/x86-iommu: Add missing stubs, Alex Bennée, 2020/01/09
- [PULL v2 03/14] freebsd: use python37, Alex Bennée, 2020/01/09
- [PULL v2 04/14] travis.yml: avocado: Print logs of non-pass tests only, Alex Bennée, 2020/01/09
- [PULL v2 05/14] travis.yml: Detach build and test steps,
Alex Bennée <=
- [PULL v2 06/14] travis.yml: duplicate before_script for MacOSX, Alex Bennée, 2020/01/09
- [PULL v2 07/14] travis.yml: install homebrew python for OS X, Alex Bennée, 2020/01/09
- [PULL v2 09/14] target/arm: remove unused EXCP_SEMIHOST leg, Alex Bennée, 2020/01/09
- [PULL v2 08/14] testing: don't nest build for fp-test, Alex Bennée, 2020/01/09
- [PULL v2 13/14] tests/tcg: extract __semi_call into a header and expand, Alex Bennée, 2020/01/09
- [PULL v2 10/14] target/arm: only update pc after semihosting completes, Alex Bennée, 2020/01/09
- [PULL v2 14/14] tests/tcg: add user version of dumb-as-bricks semiconsole test, Alex Bennée, 2020/01/09
- [PULL v2 11/14] semihosting: add qemu_semihosting_console_inc for SYS_READC, Alex Bennée, 2020/01/09