forked from kaitoy/pcap4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (37 loc) · 943 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
34
35
36
37
38
39
40
41
42
43
44
45
sudo: required
language: java
addons:
hostname: pcap4j-test
branches:
only:
- v1
matrix:
include:
- jdk: oraclejdk8
- jdk: oraclejdk7
env: COVERALLS=yes
- jdk: openjdk6
fast_finish: true
cache:
directories:
- $HOME/.m2
install:
- git clone -b libpcap-1.7.4 git://github.com/the-tcpdump-group/libpcap.git libpcap
- cd libpcap
- ./configure
- make && sudo make install
- cd ..
script:
- |
if [ "${COVERALLS}" = "yes" ]
then
sudo /usr/local/maven/bin/mvn -Dorg.pcap4j.core.pcapLibName=/usr/local/lib/libpcap.so -B -DserviceJobId=$TRAVIS_JOB_ID -Dorg.pcap4j.core.test.enableTimestampPrecisionTests=true -P test-coverage package coveralls:report
else
sudo /usr/local/maven/bin/mvn -Dorg.pcap4j.core.pcapLibName=/usr/local/lib/libpcap.so -B install
fi
notifications:
email:
recipients:
on_success: change
on_failure: always