uvw/travis.sh
Tushar Maheshwari b2e17090c3 Travis fixes (#3)
* Add more rows to travis matrix

Add OS X new image

* Travis build fixes

Use the filesystem and the user’s directory which is already included in PATH

* travis get tests running on new OS X image

The rpath configuration for uv needs libuv.dylib in /usr/local/lib.
It’s easier to static link for tests instead.

* OS X cannot set sigaction on 42

Use 2 (SIGINT) for the test.
2016-09-13 18:01:02 +05:30

17 lines
572 B
Bash
Executable File

#!/usr/bin/env bash
USER_PATH_DIR=~/bin
TEMP_DIR=~/.cmake
mkdir -p ${USER_PATH_DIR}
mkdir -p ${TEMP_DIR}
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
curl -s https://cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz | tar -xz -C ${TEMP_DIR}
ln -s ${TEMP_DIR}/cmake-3.6.2-Linux-x86_64/bin/cmake ${USER_PATH_DIR}
fi
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
curl -s https://cmake.org/files/v3.6/cmake-3.6.2-Darwin-x86_64.tar.gz | tar -xz -C ${TEMP_DIR}
"${TEMP_DIR}/cmake-3.6.2-Darwin-x86_64/CMake.app/Contents/bin/cmake-gui" --install=${USER_PATH_DIR}
fi