[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 10/17] .travis.yml: move cache flushing to early common phase
From: |
Alex Bennée |
Subject: |
[PATCH v3 10/17] .travis.yml: move cache flushing to early common phase |
Date: |
Mon, 3 Feb 2020 09:09:25 +0000 |
We shall be adding more common early setup in a future commit.
Signed-off-by: Alex Bennée <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Tested-by: Philippe Mathieu-Daudé <address@hidden>
---
.travis.yml | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index f245765cfed..1b92f40eab2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -82,11 +82,16 @@ git:
# we want to do this ourselves
submodules: false
+# Common first phase for all steps
+before_install:
+ - if command -v ccache ; then ccache --zero-stats ; fi
+# Configure step - may be overridden
before_script:
- - if command -v ccache ; then ccache --zero-stats ; fi
- mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
- ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit
1; }
+
+# Main build & test - rarely overridden - controlled by TEST_CMD
script:
- BUILD_RC=0 && make -j3 || BUILD_RC=$?
- if [ "$BUILD_RC" -eq 0 ] ; then travis_retry ${TEST_CMD} ; else $(exit
$BUILD_RC); fi
@@ -268,7 +273,6 @@ matrix:
before_script:
- brew link --overwrite python
- export PATH="/usr/local/opt/ccache/libexec:$PATH"
- - if command -v ccache ; then ccache --zero-stats ; fi
- mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
- ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log &&
exit 1; }
@@ -499,9 +503,6 @@ matrix:
- TEST_CMD="make install -j3"
- QEMU_VERSION="${TRAVIS_TAG:1}"
- CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default"
- before_script:
- - command -v ccache && ccache --zero-stats
- - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
script:
- make -C ${SRC_DIR} qemu-${QEMU_VERSION}.tar.bz2
- ls -l ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2
--
2.20.1
- [PATCH v3 00/17] testing/next (with build fixes, finally GREEN!), Alex Bennée, 2020/02/03
- [PATCH v3 01/17] tests/docker: move most cross compilers to buster base, Alex Bennée, 2020/02/03
- [PATCH v3 02/17] tests/docker: better handle symlinked libs, Alex Bennée, 2020/02/03
- [PATCH v3 03/17] gitlab-ci: Refresh the list of iotests, Alex Bennée, 2020/02/03
- [PATCH v3 04/17] travis.yml: Install genisoimage package, Alex Bennée, 2020/02/03
- [PATCH v3 05/17] .shippable: --disable-docs for cross-compile tests, Alex Bennée, 2020/02/03
- [PATCH v3 06/17] hw/hppa/Kconfig: LASI chipset requires PARALLEL port, Alex Bennée, 2020/02/03
- [PATCH v3 07/17] .travis.yml: Drop superfluous use of --python=python3 parameter, Alex Bennée, 2020/02/03
- [PATCH v3 09/17] .travis.yml: build documents under bionic, Alex Bennée, 2020/02/03
- [PATCH v3 10/17] .travis.yml: move cache flushing to early common phase,
Alex Bennée <=
- [PATCH v3 08/17] .travis.yml: Add description to each job, Alex Bennée, 2020/02/03
- [PATCH v3 12/17] tests/tcg: add a configure compiler check for ARMv8.1 and SVE, Alex Bennée, 2020/02/03
- [PATCH v3 14/17] .travis.yml: introduce TEST_BUILD_CMD and use it for check-tcg, Alex Bennée, 2020/02/03
- [PATCH v3 11/17] .travis.yml: probe for number of available processors, Alex Bennée, 2020/02/03
- [PATCH v3 13/17] tests/tcg: gate pauth-% tests on having compiler support, Alex Bennée, 2020/02/03
- [PATCH v3 16/17] .travis.yml: drop cris-linux-user from the plugins test, Alex Bennée, 2020/02/03
- [PATCH v3 15/17] .travis.yml: drop the travis_retry from tests, Alex Bennée, 2020/02/03
- [PATCH v3 17/17] .travis.yml: single thread build-tcg, Alex Bennée, 2020/02/03