[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 05/73] travis.yml: Fix the ccache lines
From: |
Alex Bennée |
Subject: |
[PULL v2 05/73] travis.yml: Fix the ccache lines |
Date: |
Fri, 25 Oct 2019 07:36:05 +0100 |
From: Thomas Huth <address@hidden>
The "command -v ccache && ccache ..." likely were supposed to test
the availability of ccache before running the program. But this
shell construct causes Travis to abort if ccache is not available.
Use an if-statement instead to fix this problem.
Signed-off-by: Thomas Huth <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Tested-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Alex Bennée <address@hidden>
diff --git a/.travis.yml b/.travis.yml
index e65e53f3d7e..7e0d4ad2b31 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -91,13 +91,13 @@ git:
before_script:
- if [ "$TRAVIS_OS_NAME" == "osx" ] ; then export
PATH="/usr/local/opt/ccache/libexec:$PATH" ; fi
- - command -v ccache && ccache --zero-stats
+ - 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; }
script:
- make -j3 && travis_retry ${TEST_CMD}
after_script:
- - command -v ccache && ccache --show-stats
+ - if command -v ccache ; then ccache --show-stats ; fi
matrix:
--
2.20.1
- [PULL v2 00/73] tcg plugins and testing updates, Alex Bennée, 2019/10/25
- [PULL v2 02/73] travis.yml: Add libvdeplug-dev to compile-test net/vde.c, Alex Bennée, 2019/10/25
- [PULL v2 01/73] travis.yml: reduce scope of the --enable-debug build, Alex Bennée, 2019/10/25
- [PULL v2 04/73] travis.yml: Use newer version of libgnutls and libpng, Alex Bennée, 2019/10/25
- [PULL v2 06/73] travis.yml: Test the release tarball, Alex Bennée, 2019/10/25
- [PULL v2 03/73] travis.yml: Use libsdl2 instead of libsdl1.2, and install libsdl2-image, Alex Bennée, 2019/10/25
- [PULL v2 10/73] tests/vm: Let subclasses disable IPv6, Alex Bennée, 2019/10/25
- [PULL v2 08/73] cirrus.yml: add latest Xcode build target, Alex Bennée, 2019/10/25
- [PULL v2 05/73] travis.yml: Fix the ccache lines,
Alex Bennée <=
- [PULL v2 09/73] tests/vm: netbsd autoinstall, using serial console, Alex Bennée, 2019/10/25
- [PULL v2 53/73] plugin: add API symbols to qemu-plugins.symbols, Alex Bennée, 2019/10/25
- [PULL v2 54/73] plugin: expand the plugin_init function to include an info block, Alex Bennée, 2019/10/25
- [PULL v2 07/73] travis.yml: bump Xcode 10 to latest dot release, Alex Bennée, 2019/10/25
- [PULL v2 11/73] tests/vm/netbsd: Disable IPv6, Alex Bennée, 2019/10/25
- [PULL v2 13/73] gitlab-ci.yml: Use libvdeplug-dev to compile-test the VDE network backend, Alex Bennée, 2019/10/25
- [PULL v2 19/73] cpu: introduce cpu_in_exclusive_context(), Alex Bennée, 2019/10/25
- [PULL v2 56/73] plugin: add qemu_plugin_outs helper, Alex Bennée, 2019/10/25
- [PULL v2 72/73] MAINTAINERS: add me for the TCG plugins code, Alex Bennée, 2019/10/25
- [PULL v2 59/73] tests/plugin: add sample plugins, Alex Bennée, 2019/10/25