1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-16 21:31:47 -05:00
sdrangel/cmake/travis-ci/build_sdrangel.sh
Davide Gerhard f642d2fcf0
travis-ci: enabling continuous integration on SDRangel
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
2019-05-21 20:19:30 +02:00

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