1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-17 23:28:50 -05:00

travis-ci: test EXTERNAL_LIBRARIES and added new dependencies

This commit is contained in:
Davide Gerhard 2019-05-25 11:05:41 +02:00
parent 2e04d2fe9d
commit ce7e1791d9
No known key found for this signature in database
GPG Key ID: 7CBEFA144857DC97
13 changed files with 122 additions and 50 deletions

View File

@ -5,6 +5,9 @@ matrix:
- os: linux
dist: xenial
env: CMAKE_CUSTOM_OPTIONS="-DBUILD_GUI=OFF"
- os: linux
dist: xenial
env: CMAKE_CUSTOM_OPTIONS="-DENABLE_EXTERNAL_LIBRARIES=ON"
- os: osx
osx_image: xcode10.2
- os: osx
@ -43,7 +46,6 @@ addons:
- librtlsdr-dev
- libasound2-dev
- libopencv-dev
- libopencv-dev
- libsqlite3-dev
- libxml2-dev
- bison
@ -67,23 +69,19 @@ install:
# macOS 10.11 doesn't support newest Qt
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [[ "$TRAVIS_OSX_IMAGE" == "xcode7.3" ]]; then sudo port -N -k install qt59-qtmultimedia qt59-qttools; else sudo port -N -k install qt5-qtmultimedia qt5-qttools; fi; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source macports-ci ccache --save; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash cmake/travis-ci/build_codec2.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash cmake/travis-ci/build_cm256cc.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash cmake/travis-ci/build_dsdcc.sh; fi
# use codec2 from repository
#- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_codec2.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_cm256cc.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_mbelib.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_serialdv.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_dsdcc.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_perseus-sdr.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_xtrx-sdr.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_airspyhf.sh; fi
script:
- bash -c export
- bash -c pwd
- bash cmake/travis-ci/build_sdrangel.sh
- bash cmake/ci/build_sdrangel.sh
env:
- CMAKE_CUSTOM_OPTIONS="-DFORCE_SSE41=ON -DBUNDLE=ON -DENABLE_PACK_MIRSDRAPI=ON"
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: true
on:
branch: master
repo: sdrangel-travis-ci
project_name: SDRangel
email: rainbow@irh.it
name: rainbow

View File

@ -0,0 +1,13 @@
#!/bin/sh
cd $HOME
mkdir -p external && cd external
mkdir -p airspy && cd airspy
git clone https://github.com/airspy/airspyhf.git
cd airspyhf
mkdir -p build && cd build
cmake .. -DINSTALL_UDEV_RULES=ON
sudo make install
sudo ldconfig

13
cmake/ci/build_cm256cc.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/sh
cd $HOME
mkdir -p external && cd external
mkdir -p f4exb && cd f4exb
git clone https://github.com/f4exb/cm256cc.git
cd cm256cc
mkdir -p build && cd build
cmake ..
sudo make install
sudo ldconfig

15
cmake/ci/build_codec2.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
sudo apt-get -y install libsamplerate0-dev libspeex-dev libspeexdsp-dev
cd $HOME
mkdir -p external && cd external
mkdir -p drowe67 && cd drowe67
git clone https://github.com/drowe67/codec2.git
cd codec2
mkdir -p build && cd build
cmake ..
sudo make install
sudo ldconfig

13
cmake/ci/build_dsdcc.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/sh
cd $HOME
mkdir -p external && cd external
mkdir -p f4exb && cd f4exb
git clone https://github.com/f4exb/dsdcc.git
cd dsdcc
mkdir -p build && cd build
cmake ..
sudo make install
sudo ldconfig

13
cmake/ci/build_mbelib.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/sh
cd $HOME
mkdir -p external && cd external
mkdir -p szechyjs && cd szechyjs
git clone https://github.com/szechyjs/mbelib.git
cd mbelib
mkdir -p build && cd build
cmake ..
sudo make install
sudo ldconfig

View File

@ -0,0 +1,14 @@
#!/bin/sh
cd $HOME
mkdir -p external && cd external
mkdir -p microtelecom && cd microtelecom
git clone https://github.com/Microtelecom/libperseus-sdr.git
cd libperseus-sdr
./bootstrap.sh
./configure
make
sudo make install
sudo ldconfig

View File

@ -2,14 +2,14 @@
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
JOBS=$(sysctl -n hw.ncpu)
elif [ "${TRAVIS_OS_NAME}" == "linux" ]; then
elif [ "${TRAVIS_OS_NAME}" == "linux" ] || [ ${CI_LINUX} = true ]; then
JOBS=$(nproc --all)
else
JOBS=1
fi
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
if [ "${TRAVIS_OS_NAME}" == "linux" ] || [ ${CI_LINUX} = true ]; then
debuild -i -us -uc -b
else
mkdir build && cd build

View File

@ -0,0 +1,13 @@
#!/bin/sh
cd $HOME
mkdir -p external && cd external
mkdir -p f4exb && cd f4exb
git clone https://github.com/f4exb/serialDV.git
cd serialDV
mkdir -p build && cd build
cmake ..
sudo make install
sudo ldconfig

View File

@ -0,0 +1,12 @@
#!/bin/sh
cd $HOME
mkdir -p external && cd external
mkdir -p xtrx-sdr && cd xtrx-sdr
git clone https://github.com/xtrx-sdr/images.git
cd images/binaries/Ubuntu_16.04_amd64
sudo dpkg -i *.deb
sudo apt-get -y install -f
sudo ldconfig

View File

@ -1,10 +0,0 @@
cd $HOME/build
mkdir f4exb && cd f4exb
git clone https://github.com/f4exb/cm256cc.git
cd cm256cc
mkdir build && cd build
cmake ..
sudo make install

View File

@ -1,12 +0,0 @@
sudo apt-get install libsamplerate0-dev libspeex-dev libspeexdsp-dev
cd $HOME/build
mkdir drowe67 && cd drowe67
git clone https://github.com/drowe67/codec2.git
cd codec2
mkdir build && cd build
cmake ..
sudo make install

View File

@ -1,10 +0,0 @@
cd $HOME/build
mkdir f4exb && cd f4exb
git clone https://github.com/f4exb/dsdcc.git
cd dsdcc
mkdir build && cd build
cmake ..
sudo make install