forked from pothosware/PothosCore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
69 lines (56 loc) · 2.08 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
########################################################################
## Travis CI config for Pothos
##
## * not all components will be configured
## * the matrix builds Release and Debug
## * run the self tests after install
########################################################################
language: cpp
env:
global:
- INSTALL_PREFIX=/usr/local
matrix:
- BUILD_TYPE=Debug
- BUILD_TYPE=Release
compiler: gcc
# whitelist
branches:
only:
- master
before_install:
# install a newer cmake since at this time Travis only has version 2.8.7
- sudo add-apt-repository -y ppa:kalakris/cmake
# install a gcc 4.8 since we need C++11 support (http://gearchicken.com/wordpress/?p=105)
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
install:
- sudo apt-get install -qq libnuma-dev cmake
# We want to compile with g++ 4.8 when rather than the default g++
- sudo apt-get install -qq gcc-4.8 g++-4.8
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 90
# pothos-python required python dev and numpy
- 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
# install poco tar.gz with debs inside
- wget http://www.joshknows.com/download/Poco_1.6.0_x64_lin.tar.gz
- tar -xzvf Poco_1.6.0_x64_lin.tar.gz
- sudo dpkg -i Poco_1.6.0_x64_lin/*.deb
script:
- mkdir build && cd build
- cmake ../ -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
- make -j2
- sudo make install
# setup environment paths
- export LD_LIBRARY_PATH=${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}
- export PATH=${INSTALL_PREFIX}/bin:${PATH}
# basic test for command line utility
- PothosUtil --system-info
- PothosUtil --self-tests