From b521ec737d619392005e21ff2b6d66f6e5762e43 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Tue, 24 Jan 2017 14:02:54 +0100 Subject: [PATCH] fix(ci): Cache directory --- common/travis/install_cmake.sh | 4 +++- common/travis/install_xcb_xrm.sh | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/common/travis/install_cmake.sh b/common/travis/install_cmake.sh index fae07510..3cc654e3 100755 --- a/common/travis/install_cmake.sh +++ b/common/travis/install_cmake.sh @@ -1,6 +1,8 @@ #!/bin/bash if [ -z "$(ls -A "${DEPS_DIR}/cmake/bin" 2>/dev/null)" ]; then - mkdir -p "${DEPS_DIR}/cmake" && travis_retry wget --no-check-certificate -O - "${CMAKE_URL}" | tar --strip-components=1 -xz -C "${DEPS_DIR}/cmake" + mkdir -p "${DEPS_DIR}/cmake" + cd "${DEPS_DIR}/cmake" || exit 1 + travis_retry wget --no-check-certificate -O - "${CMAKE_URL}" | tar --strip-components=1 -xz fi export PATH="${DEPS_DIR}/cmake/bin:${PATH}" diff --git a/common/travis/install_xcb_xrm.sh b/common/travis/install_xcb_xrm.sh index 08599b89..e9182bbf 100755 --- a/common/travis/install_xcb_xrm.sh +++ b/common/travis/install_xcb_xrm.sh @@ -1,7 +1,8 @@ #!/bin/bash if [ -z "$(ls -A "${DEPS_DIR}/xcb-util-xrm" 2>/dev/null)" ]; then + cd "${DEPS_DIR}" || exit 1 git clone --recursive https://github.com/Airblader/xcb-util-xrm - cd xcb-util-xrm + cd xcb-util-xrm || exit 1 ./autogen.sh --prefix=/usr --libdir=/usr/lib make sudo make install