forked from usb-tools/USBProxy-legacy
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
33 lines (26 loc) · 799 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
27
28
29
30
31
32
33
language: c++
cache: apt
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libpcap-dev
- libudev-dev
- cmake
# - gcc-4.7
# - g++-4.7
compiler:
- gcc
before_install:
- wget https://github.com/libusb/libusb/archive/v1.0.19.tar.gz
- tar -xvzf v1.0.19.tar.gz
- cd libusb-1.0.19 && ./bootstrap.sh && ./configure --prefix=$HOME/libusb && make && make install
- cd -
before_script:
- mkdir -p src/build
- cd src/build
# - CC=gcc-4.7 CXX=g++-4.7 CFLAGS="-g -Wall -Wextra" cmake -DLIBUSB_INCLUDE_DIR=$HOME/libusb/include -DLIBUSB_LIBRARIES=$HOME/libusb/lib/libusb-1.0.so ..
- CXXFLAGS="-g -Wall -Wextra" cmake -DLIBUSB_INCLUDE_DIR=$HOME/libusb/include -DLIBUSB_LIBRARIES=$HOME/libusb/lib/libusb-1.0.so ..
script: make