fix(ci): Cache cmake archive

This commit is contained in:
Michael Carlberg 2017-01-24 13:23:38 +01:00
parent c656ccd701
commit 42a982a4a5

View File

@ -1,6 +1,6 @@
#!/bin/bash
if [ -z "$(ls -A "${DEPS_DIR}/cmake/bin" 2>/dev/null)" ]; then
mkdir -p cmake && travis_retry wget --no-check-certificate -O - "${CMAKE_URL}" | tar --strip-components=1 -xz -C cmake
mkdir -p "${DEPS_DIR}/cmake" && travis_retry wget --no-check-certificate -O - "${CMAKE_URL}" | tar --strip-components=1 -xz -C "${DEPS_DIR}/cmake"
fi
export PATH="${DEPS_DIR}/cmake/bin:${PATH}"