mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-17 05:41:56 -05:00
travis-ci: test EXTERNAL_LIBRARIES and added new dependencies
This commit is contained in:
parent
2e04d2fe9d
commit
ce7e1791d9
30
.travis.yml
30
.travis.yml
@ -5,6 +5,9 @@ matrix:
|
|||||||
- os: linux
|
- os: linux
|
||||||
dist: xenial
|
dist: xenial
|
||||||
env: CMAKE_CUSTOM_OPTIONS="-DBUILD_GUI=OFF"
|
env: CMAKE_CUSTOM_OPTIONS="-DBUILD_GUI=OFF"
|
||||||
|
- os: linux
|
||||||
|
dist: xenial
|
||||||
|
env: CMAKE_CUSTOM_OPTIONS="-DENABLE_EXTERNAL_LIBRARIES=ON"
|
||||||
- os: osx
|
- os: osx
|
||||||
osx_image: xcode10.2
|
osx_image: xcode10.2
|
||||||
- os: osx
|
- os: osx
|
||||||
@ -43,7 +46,6 @@ addons:
|
|||||||
- librtlsdr-dev
|
- librtlsdr-dev
|
||||||
- libasound2-dev
|
- libasound2-dev
|
||||||
- libopencv-dev
|
- libopencv-dev
|
||||||
- libopencv-dev
|
|
||||||
- libsqlite3-dev
|
- libsqlite3-dev
|
||||||
- libxml2-dev
|
- libxml2-dev
|
||||||
- bison
|
- bison
|
||||||
@ -67,23 +69,19 @@ install:
|
|||||||
# macOS 10.11 doesn't support newest Qt
|
# 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 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" == "osx" ]]; then source macports-ci ccache --save; fi
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash cmake/travis-ci/build_codec2.sh; fi
|
# use codec2 from repository
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash cmake/travis-ci/build_cm256cc.sh; fi
|
#- 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" ]]; then bash cmake/travis-ci/build_dsdcc.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:
|
script:
|
||||||
- bash -c export
|
- bash -c export
|
||||||
- bash -c pwd
|
- bash -c pwd
|
||||||
- bash cmake/travis-ci/build_sdrangel.sh
|
- bash cmake/ci/build_sdrangel.sh
|
||||||
env:
|
env:
|
||||||
- CMAKE_CUSTOM_OPTIONS="-DFORCE_SSE41=ON -DBUNDLE=ON -DENABLE_PACK_MIRSDRAPI=ON"
|
- 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
|
|
||||||
|
13
cmake/ci/build_airspyhf.sh
Normal file
13
cmake/ci/build_airspyhf.sh
Normal 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
13
cmake/ci/build_cm256cc.sh
Normal 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
15
cmake/ci/build_codec2.sh
Normal 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
13
cmake/ci/build_dsdcc.sh
Normal 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
13
cmake/ci/build_mbelib.sh
Normal 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
|
14
cmake/ci/build_perseus-sdr.sh
Normal file
14
cmake/ci/build_perseus-sdr.sh
Normal 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
|
@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
|
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
|
||||||
JOBS=$(sysctl -n hw.ncpu)
|
JOBS=$(sysctl -n hw.ncpu)
|
||||||
elif [ "${TRAVIS_OS_NAME}" == "linux" ]; then
|
elif [ "${TRAVIS_OS_NAME}" == "linux" ] || [ ${CI_LINUX} = true ]; then
|
||||||
JOBS=$(nproc --all)
|
JOBS=$(nproc --all)
|
||||||
else
|
else
|
||||||
JOBS=1
|
JOBS=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
|
if [ "${TRAVIS_OS_NAME}" == "linux" ] || [ ${CI_LINUX} = true ]; then
|
||||||
debuild -i -us -uc -b
|
debuild -i -us -uc -b
|
||||||
else
|
else
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
13
cmake/ci/build_serialdv.sh
Normal file
13
cmake/ci/build_serialdv.sh
Normal 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
|
12
cmake/ci/build_xtrx-sdr.sh
Normal file
12
cmake/ci/build_xtrx-sdr.sh
Normal 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
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user