-
Notifications
You must be signed in to change notification settings - Fork 52
/
.travis.yml
66 lines (53 loc) · 1.63 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
########################################################################
## Travis CI config for OpenUSRP
##
## * not all components will be configured
## * the matrix builds Release and Debug
## * run the self tests after install
########################################################################
sudo: required
dist: trusty
language: cpp
matrix:
include:
- os: linux
compiler: gcc
- os: osx
compiler: clang
env:
global:
- BUILD_TYPE=Release
before_install:
# update after package changes
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update; fi;
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
# install development dependencies
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq libusb-1.0-0-dev libboost-all-dev;fi;
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libusb; fi
- sudo pip install mako
install:
# install LimeSuite from source
- git clone --depth=1 https://github.com/myriadrf/LimeSuite.git
- pushd LimeSuite
- mkdir temp && cd temp
- cmake ../ -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
- make -j4
- sudo make install
- popd
# install UHD from source
- git clone --depth=1 https://github.com/EttusResearch/uhd.git
- pushd uhd/host
- pushd lib/usrp
- git clone https://github.com/jocover/OpenUSRP.git
- echo "INCLUDE_SUBDIRECTORY(OpenUSRP)">>CMakeLists.txt
- popd
- mkdir build && cd build
- cmake ../ -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
- make -j4
- sudo make install
- popd
script:
- mkdir build && cd build
- cmake ../ -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
- make -j4
- sudo make install