You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 line
457B

  1. #!/bin/bash
  2. BUILD_DIR=${TRAVIS_BUILD_DIR}
  3. mkdir -p "${DEPENDENCY_DIR}" && cd "${DEPENDENCY_DIR}"
  4. ## Install CMake
  5. CMAKE_INSTALLER=install-cmake.sh
  6. if [[ ! -f ${CMAKE_INSTALLER} ]]
  7. then
  8. echo "CMake installer not available, downloading ..."
  9. curl -sSL https://cmake.org/files/v3.8/cmake-3.8.2-Linux-x86_64.sh -o ${CMAKE_INSTALLER}
  10. chmod +x ${CMAKE_INSTALLER}
  11. sudo ./install-cmake.sh --prefix=/usr/local --skip-license
  12. fi
  13. cd ${BUILD_DIR}