[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 05/19] travis.yml: Fix the ccache lines
From: |
Alex Bennée |
Subject: |
[PATCH v1 05/19] travis.yml: Fix the ccache lines |
Date: |
Tue, 22 Oct 2019 20:16:50 +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>
Message-Id: <address@hidden>
---
.travis.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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
- [PATCH v1 02/19] travis.yml: Add libvdeplug-dev to compile-test net/vde.c, (continued)
- [PATCH v1 02/19] travis.yml: Add libvdeplug-dev to compile-test net/vde.c, Alex Bennée, 2019/10/22
- [PATCH v1 11/19] tests/vm: Let subclasses disable IPv6, Alex Bennée, 2019/10/22
- [PATCH v1 06/19] travis.yml: Test the release tarball, Alex Bennée, 2019/10/22
- [PATCH v1 04/19] travis.yml: Use newer version of libgnutls and libpng, Alex Bennée, 2019/10/22
- [PATCH v1 09/19] cirrus.yml: add latest Xcode build target, Alex Bennée, 2019/10/22
- [PATCH v1 07/19] cirrus.yml: reduce scope of MacOS build, Alex Bennée, 2019/10/22
- [PATCH v1 08/19] travis.yml: bump Xcode 10 to latest dot release, Alex Bennée, 2019/10/22
- [PATCH v1 05/19] travis.yml: Fix the ccache lines,
Alex Bennée <=
- [PATCH v1 13/19] travis.yml: cache the clang sanitizer build, Alex Bennée, 2019/10/22
- [PATCH v1 10/19] tests/vm: netbsd autoinstall, using serial console, Alex Bennée, 2019/10/22
- [PATCH v1 14/19] iotests: remove 'linux' from default supported platforms, Alex Bennée, 2019/10/22
- [PATCH v1 15/19] iotests: Test 041 only works on certain systems, Alex Bennée, 2019/10/22
- [PATCH v1 16/19] iotests: Test 183 does not work on macOS and OpenBSD, Alex Bennée, 2019/10/22
- [PATCH v1 12/19] tests/vm/netbsd: Disable IPv6, Alex Bennée, 2019/10/22