fix(ci): Cache directory

This commit is contained in:
Michael Carlberg 2017-01-24 14:02:54 +01:00
parent 681a4b7935
commit b521ec737d
2 changed files with 5 additions and 2 deletions

View File

@ -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}"

View File

@ -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