-
Notifications
You must be signed in to change notification settings - Fork 48
/
.travis.yml
92 lines (72 loc) · 2.64 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
########################################################################
## Travis CI config for Pothos
##
## * not all components will be configured
## * the matrix builds Release and Debug
## * run the self tests after install
########################################################################
sudo: required
dist: trusty
language: cpp
compiler: gcc
env:
global:
- INSTALL_PREFIX=/usr/local
- SOAPY_SDR_BRANCH=master
matrix:
- BUILD_TYPE=Debug
- BUILD_TYPE=Release
# whitelist
branches:
only:
- master
- maint
before_install:
# regular ubuntu packages
- sudo add-apt-repository main
- sudo add-apt-repository universe
# tool chain for gcc5
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
# development files from ppa
- sudo add-apt-repository -y ppa:myriadrf/drivers
- sudo add-apt-repository -y ppa:pothosware/support
- sudo add-apt-repository -y ppa:pothosware/framework
# update after package changes
- sudo apt-get update -qq
install:
# tool chain for gcc5
- sudo apt-get install -qq g++-5
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 90
# install development dependencies
- sudo apt-get install -qq libnuma-dev cmake
# install development dependencies from drivers ppa
- sudo apt-get install -qq libspuce-dev libsoapysdr-dev
# install development dependencies from support ppa
- sudo apt-get install -qq libpoco-dev-min libmuparserx-dev
# install audio support dependencies
- sudo apt-get install -qq portaudio19-dev libjack-jackd2-dev
# install graphics support dependencies
- sudo apt-get install -qq qtbase5-dev libqt5svg5-dev libqwt-qt5-dev
# install python support dependencies
- sudo apt-get install -qq python-dev python-numpy
# 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}
- make && sudo make install
- popd
script:
- mkdir build && cd build
- cmake ../ -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DPYTHON_EXECUTABLE=/usr/bin/python2 -DPython_ADDITIONAL_VERSIONS=2.7
- make -j2
- sudo make install
# setup environment paths
- export LD_LIBRARY_PATH=${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}
- export PATH=${INSTALL_PREFIX}/bin:${PATH}
- export PYTHONPATH=/usr/lib/python2.7/dist-packages:${PYTHONPATH}
- export PYTHONPATH=${INSTALL_PREFIX}/lib/python2.7/dist-packages:${PYTHONPATH}
# basic test for command line utility
- PothosUtil --system-info
- PothosUtil --self-tests