|
Packit |
ae9e2a |
#!/bin/sh
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
set -x
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
if [ -n "$COVERITY" ]; then
|
|
Packit |
ae9e2a |
./script/coverity.sh
|
|
Packit |
ae9e2a |
exit $?
|
|
Packit |
ae9e2a |
fi
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
Packit |
ae9e2a |
export PKG_CONFIG_PATH=$(ls -d /usr/local/Cellar/{curl,zlib}/*/lib/pkgconfig | paste -s -d':' -)
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
# Set up a ramdisk for us to put our test data on to speed up tests on macOS
|
|
Packit |
ae9e2a |
export CLAR_TMP="$HOME"/_clar_tmp
|
|
Packit |
ae9e2a |
mkdir -p $CLAR_TMP
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
# 5*2M sectors aka ~5GB of space
|
|
Packit |
ae9e2a |
device=$(hdiutil attach -nomount ram://$((5 * 2 * 1024 * 1024)))
|
|
Packit |
ae9e2a |
newfs_hfs $device
|
|
Packit |
ae9e2a |
mount -t hfs $device $CLAR_TMP
|
|
Packit |
ae9e2a |
fi
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
mkdir _build
|
|
Packit |
ae9e2a |
cd _build
|
|
Packit |
ae9e2a |
# shellcheck disable=SC2086
|
|
Packit |
ae9e2a |
cmake .. -DBUILD_EXAMPLES=ON -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS || exit $?
|
|
Packit |
ae9e2a |
cmake --build . --target install || exit $?
|