mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-06 00:41:17 -05:00
f642d2fcf0
Use travis-ci as continuous integrator with builind for the following operating systems: - ubuntu 16.04; build with gui and without gui - macOS 10.14, 10.13, 10.12, 10.11 with macports This file can be used as build dependency tracker to avoid duplicated information. TODO: - windows 10 NOTE: - ubuntu 18.04 is not supported yet. Azure pipelines has the same limit. [1] http://travis-ci.org
22 lines
342 B
Bash
22 lines
342 B
Bash
#!/bin/sh
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
JOBS=$(sysctl -n hw.ncpu)
|
|
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
JOBS=$(nproc --all)
|
|
else
|
|
JOBS=1
|
|
fi
|
|
|
|
mkdir build && cd build
|
|
cmake .. "${CMAKE_CUSTOM_OPTIONS}"
|
|
|
|
case "${CMAKE_CUSTOM_OPTIONS}" in
|
|
*BUNDLE=ON*)
|
|
make -j${JOBS} package
|
|
;;
|
|
*)
|
|
make -j${JOBS}
|
|
;;
|
|
esac
|