mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-10-17 11:05:06 +02:00
fix path setup for osx/linux + improve readability
This commit is contained in:
14
.travis.yml
14
.travis.yml
@@ -108,9 +108,19 @@ matrix:
|
|||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir -p /tmp/cmake.root
|
- 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
|
- 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
|
- export PATH=/tmp/cmake.root/$CMAKE_BIN_DIR:$PATH
|
||||||
|
|
||||||
# Build and check this project
|
# Build and check this project
|
||||||
|
Reference in New Issue
Block a user