forked from myriadrf/LimeSuite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (48 loc) · 1.59 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
########################################################################
## Travis CI config for LimeSuite
##
## * not all components will be configured
## * the matrix builds Release and Debug
## * for linux + gcc, and osx + clang
########################################################################
sudo: required
dist: trusty
language: cpp
matrix:
include:
- os: linux
compiler: gcc
- os: osx
compiler: clang
env:
global:
- INSTALL_PREFIX=/usr/local
- SOAPY_SDR_BRANCH=master
- BUILD_TYPE=Release
# whitelist
branches:
only:
- master
- stable
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 cmake libwxbase3.0-dev libwxgtk3.0-dev;fi;
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew list libusb || brew install libusb ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew list wxmac || brew install wxmac ; fi
install:
# 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 temp && cd temp
- cmake ../ -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DENABLE_EVB7COM=ON
- make -j2
- sudo make install