2019-05-16 07:17:34 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2019-05-22 11:16:06 -04:00
|
|
|
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
|
2019-05-16 07:17:34 -04:00
|
|
|
JOBS=$(sysctl -n hw.ncpu)
|
2019-05-25 05:05:41 -04:00
|
|
|
elif [ "${TRAVIS_OS_NAME}" == "linux" ] || [ ${CI_LINUX} = true ]; then
|
2019-05-16 07:17:34 -04:00
|
|
|
JOBS=$(nproc --all)
|
|
|
|
else
|
|
|
|
JOBS=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2019-05-25 05:05:41 -04:00
|
|
|
if [ "${TRAVIS_OS_NAME}" == "linux" ] || [ ${CI_LINUX} = true ]; then
|
2019-05-22 11:16:06 -04:00
|
|
|
debuild -i -us -uc -b
|
|
|
|
else
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake .. "${CMAKE_CUSTOM_OPTIONS}"
|
|
|
|
|
|
|
|
case "${CMAKE_CUSTOM_OPTIONS}" in
|
|
|
|
*BUNDLE=ON*)
|
|
|
|
make -j${JOBS} package
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
make -j${JOBS}
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|