forked from rust-pcap/pcap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (28 loc) · 853 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
language: rust
sudo: false
addons:
apt:
packages: [libpcap0.8, libpcap0.8-dev]
matrix:
include:
- {os: linux, rust: stable,
env: FLAGS="--features tokio"}
- {os: linux, rust: beta,
env: FLAGS="--features tokio"}
- {os: linux, rust: nightly,
env: FLAGS="--features clippy,tokio"}
- {os: osx, rust: stable,
env: FLAGS="--features full" PCAP_LIBDIR=/usr/local/opt/libpcap/lib}
- {os: osx, rust: beta,
env: FLAGS="--features full" PCAP_LIBDIR=/usr/local/opt/libpcap/lib}
- {os: osx, rust: nightly,
env: FLAGS="--all-features" PCAP_LIBDIR=/usr/local/opt/libpcap/lib}
before_install:
- if [ `uname` = "Darwin" ]; then
brew update >/dev/null;
brew install homebrew/dupes/libpcap;
fi
script:
- cargo build -v $FLAGS
- cargo test -v $FLAGS
- cargo doc --no-deps