-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
26 lines (26 loc) · 878 Bytes
/
.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
dist: trusty
sudo: false
language: rust
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
addons:
apt:
packages:
- libusb-1.0-0-dev
before_script:
- cd $HOME
- git clone https://github.com/steve-m/librtlsdr.git
- git clone https://github.com/dndx/dump1090.git
- git clone https://github.com/dndx/dump978.git
- export C_INCLUDE_PATH=$C_INCLUDE_PATH:$HOME/librtlsdr-build/include
- cd $HOME/librtlsdr && mkdir build && cd build && cmake ../ -DCMAKE_INSTALL_PREFIX=$HOME/librtlsdr-build && make -j2 && make install
- cd $HOME/dump1090 && git checkout libdump1090 && make -j2
- cd $HOME/dump978 && git checkout libdump978 && make -j2
- export LIBRARY_PATH=$HOME/librtlsdr-build/lib:$HOME/dump1090:$HOME/dump978
- export LD_LIBRARY_PATH=$HOME/librtlsdr-build/lib:$HOME/dump1090:$HOME/dump978
- cd $TRAVIS_BUILD_DIR