forked from pothosware/SoapyRemote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (47 loc) · 1.52 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
########################################################################
## Travis CI config for SoapyRemote
##
## * installs SoapySDR from source
## * confirms build and install
## * checks that drivers load
########################################################################
sudo: required
dist: trusty
language: cpp
matrix:
include:
- os: linux
compiler: gcc
env: PYTHON_EXECUTABLE=/usr/bin/python PYTHON3_EXECUTABLE=/usr/bin/python3
- os: osx
compiler: clang
env: PYTHON_EXECUTABLE=/usr/local/bin/python2 PYTHON3_EXECUTABLE=/usr/local/bin/python3
env:
global:
- INSTALL_PREFIX=/usr/local
- BUILD_TYPE=Release
# whitelist
branches:
only:
- master
- maint
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq libavahi-client-dev; fi;
# install SoapySDR from source
- git clone https://github.com/pothosware/SoapySDR.git
- pushd SoapySDR
- git checkout ${SOAPY_SDR_BRANCH}
- mkdir build && cd build
- cmake ../ -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DENABLE_PYTHON=OFF -DENABLE_PYTHON3=OFF
- make && sudo make install
- popd
script:
- mkdir build && cd build
- cmake ../ -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
- make && sudo make install
# print info about the install
- export LD_LIBRARY_PATH=${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}
- export PATH=${INSTALL_PREFIX}/bin:${PATH}
- SoapySDRUtil --info
- SoapySDRUtil --check=remote
- SoapySDRServer --help