mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-18 06:11:46 -05:00
27 lines
491 B
Bash
27 lines
491 B
Bash
#!/bin/sh
|
|
|
|
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
|
|
JOBS=$(sysctl -n hw.ncpu)
|
|
elif [ "${TRAVIS_OS_NAME}" == "linux" ] || [ ${CI_LINUX} = true ]; then
|
|
JOBS=$(nproc --all)
|
|
else
|
|
JOBS=1
|
|
fi
|
|
|
|
|
|
if [ "${TRAVIS_OS_NAME}" == "linux" ] || [ ${CI_LINUX} = true ]; then
|
|
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
|