forked from f4exb/sdrangel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
97 lines (96 loc) · 4.68 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
matrix:
include:
- os: linux
dist: xenial
env:
- DEBUILD=1
- CMAKE_CUSTOM_OPTIONS="-DFORCE_SSE41=ON"
- os: linux
dist: xenial
env:
- DEBUILD=0
- CMAKE_CUSTOM_OPTIONS="-DBUILD_GUI=OFF"
- os: linux
dist: xenial
env:
- DEBUILD=1
# HACKRF ExternalProject needs cmake >= 3.7.0 but xenial has only 3.5.1
- CMAKE_CUSTOM_OPTIONS="-DENABLE_EXTERNAL_LIBRARIES=ON -DENABLE_HACKRF=OFF"
- os: osx
osx_image: xcode10.2
env: CMAKE_CUSTOM_OPTIONS="-DBUNDLE=ON -DENABLE_PACK_MIRSDRAPI=ON"
- os: osx
osx_image: xcode10.2
env: CMAKE_CUSTOM_OPTIONS="-DENABLE_EXTERNAL_LIBRARIES=ON -DBUNDLE=ON -DENABLE_PACK_MIRSDRAPI=ON"
- os: osx
osx_image: xcode9.4
env: CMAKE_CUSTOM_OPTIONS="-DBUNDLE=ON -DENABLE_PACK_MIRSDRAPI=ON"
- os: osx
osx_image: xcode8.3
env: CMAKE_CUSTOM_OPTIONS="-DBUNDLE=ON -DENABLE_PACK_MIRSDRAPI=ON"
- os: osx
osx_image: xcode7.3
env: CMAKE_CUSTOM_OPTIONS="-DBUNDLE=ON -DENABLE_PACK_MIRSDRAPI=ON"
git:
submodules: false
cache:
directories:
- $HOME/.macports-ci-ccache
language: cpp
addons:
apt:
update: true
# TODO need packages per distro
packages:
# needed by debuild
- build-essential
- cmake
- git
- devscripts
- fakeroot
- debhelper
- libfftw3-dev
- qtbase5-dev
- libqt5opengl5-dev
- qttools5-dev
- qttools5-dev-tools
- qtmultimedia5-dev
- libqt5multimedia5-plugins
- libusb-1.0-0-dev
- libboost-all-dev
- libasound2-dev
- libopencv-dev
- libxml2-dev
- bison
- flex
- ffmpeg
- libavcodec-dev
- libavformat-dev
- libopus-dev
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source ./macports-ci install; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source macports-ci ccache; fi
# libiio disabled otherwise OpenBLAS compilation timeout
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo port -N -k install libiconv fftw-3-single libusb boost opencv ffmpeg libopus; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then sudo port -N -k install SoapySDR airspy airspyhf bladerf hackrf limesuite rtl-sdr SoapySDRPlay SoapyRemote SoapyAudio; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then sudo port -N -k install perseus-sdr codec2 cm256cc; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then sudo port -N -k install dsdcc +mbelib; fi
# 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" ]] && [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then sudo apt-get install librtlsdr-dev libcodec2-dev libairspy-dev libhackrf-dev librtlsdr-dev; 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/ci/build_sdrangel.sh
#- if [[ "x${DEBUILD}" == "x1" ]]; then ./obj-x86_64-linux-gnu/sdrangelbench; else ./build/sdrangelbench; fi