message: Added cmake version variable to travis script
diff: @@ -7,12 +7,15 @@ notifications:
  on_success: never
  on_failure: always
  +env:
  + - CMAKE_VERSION=3.13.2
  +
  before_install:
  - |
  if [ "$TRAVIS_OS_NAME" = "osx" ]; then
  - wget --no-check-certificate https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2-Darwin-x86_64.tar.gz
  - tar -xzf cmake-3.13.2-Darwin-x86_64.tar.gz
  - export PATH=$PWD/cmake-3.13.2-Darwin-x86_64/CMake.app/Contents/bin:$PATH
  + wget --no-check-certificate https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-Darwin-x86_64.tar.gz
  + tar -xzf cmake-${CMAKE_VERSION}-Darwin-x86_64.tar.gz
  + export PATH=$PWD/cmake-${CMAKE_VERSION}-Darwin-x86_64/CMake.app/Contents/bin:$PATH
  cmake --version
  fi
  - |
  @@ -29,9 +32,9 @@ before_install:
  # Download a recent cmake
  mkdir $HOME/usr
  export PATH="$HOME/usr/bin:$PATH"
  - wget https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2-Linux-x86_64.sh
  - chmod +x cmake-3.13.2-Linux-x86_64.sh
  - ./cmake-3.13.2-Linux-x86_64.sh --prefix=$HOME/usr --exclude-subdir --skip-license
  + wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-Linux-x86_64.sh
  + chmod +x cmake-${CMAKE_VERSION}-Linux-x86_64.sh
  + ./cmake-${CMAKE_VERSION}-Linux-x86_64.sh --prefix=$HOME/usr --exclude-subdir --skip-license
  cmake --version
  fi
  