Use official CMake snap on Travis Linux (#6892)

Summary:
Switch to using the official CMake snap rather than our own from S3.
See https://gitlab.kitware.com/cmake/cmake/-/issues/20122#note_769266
Pull Request resolved: https://github.com/facebook/rocksdb/pull/6892

Reviewed By: ajkr

Differential Revision: D22211822

Pulled By: pdillinger

fbshipit-source-id: baf20005a4064d7f86b46087a41af4dfdea5510f
main
Adam Retter 5 years ago committed by Facebook GitHub Bot
parent d64cf0e4ee
commit 82d98447e4
  1. 9
      .travis.yml

@ -239,13 +239,8 @@ install:
CC=gcc-4.8 && CXX=g++-4.8; CC=gcc-4.8 && CXX=g++-4.8;
fi fi
- if [[ "${JOB_NAME}" == cmake* ]] && [ "${TRAVIS_OS_NAME}" == linux ]; then - if [[ "${JOB_NAME}" == cmake* ]] && [ "${TRAVIS_OS_NAME}" == linux ]; then
CMAKE_DIST_URL="https://rocksdb-deps.s3-us-west-2.amazonaws.com/cmake/cmake-3.14.5-Linux-$(uname -m).tar.bz2"; sudo snap install cmake --beta --classic;
TAR_OPT="--strip-components=1 -xj"; export PATH=/snap/bin:$PATH;
if [ "aarch64" == "$(uname -m)" ]; then
sudo apt-get install -y libuv1 librhash0;
sudo apt-get upgrade -y libstdc++6;
fi;
mkdir cmake-dist && curl --silent --fail --show-error --location "${CMAKE_DIST_URL}" | tar -C cmake-dist ${TAR_OPT} && export PATH=$PWD/cmake-dist/bin:$PATH;
fi fi
- | - |
if [[ "${JOB_NAME}" == java_test || "${JOB_NAME}" == cmake* ]]; then if [[ "${JOB_NAME}" == java_test || "${JOB_NAME}" == cmake* ]]; then

Loading…
Cancel
Save