From 439d400ff3dfb19285a0ba7bd363545184b97964 Mon Sep 17 00:00:00 2001 From: Alberto Invernizzi Date: Mon, 28 Jun 2021 00:12:58 +0200 Subject: [PATCH] fix path setup for osx/linux + improve readability --- .travis.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8ef62ed..94003a4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -108,9 +108,19 @@ matrix: before_script: - mkdir -p /tmp/cmake.root - - if [ $TRAVIS_OS_SUFFIX = 'linux' ]; then CMAKE_PKG_SUFFIX="linux-x86_64"; else CMAKE_PKG_SUFFIX="macos10.10-universal"; fi + - | + if [ $TRAVIS_OS_SUFFIX = 'linux' ]; then + CMAKE_PKG_SUFFIX="linux-x86_64" + else + CMAKE_PKG_SUFFIX="macos10.10-universal" + fi - wget -qO- "https://cmake.org/files/v3.20/cmake-3.20.5-$CMAKE_PKG_SUFFIX.tar.gz" | tar --strip-components=1 -xz -C /tmp/cmake.root - - if [ $TRAVIS_OS_SUFFIX = 'linux' ]; then CMAKE_BIN_DIR="CMake.app/Contents/bin"; else CMAKE_BIN_DIR="bin"; fi + - | + if [ $TRAVIS_OS_SUFFIX = 'linux' ]; then + CMAKE_BIN_DIR="bin" + else + CMAKE_BIN_DIR="CMake.app/Contents/bin" + fi - export PATH=/tmp/cmake.root/$CMAKE_BIN_DIR:$PATH # Build and check this project