forked from Ettercap/ettercap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
106 lines (105 loc) · 3.89 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
language: c
branches:
except:
gh-pages
compiler:
- gcc
- clang
os:
- osx
- linux
env:
# Default build. Release.
- BUILD_ARGS=""
# Debug build
- BUILD_ARGS="-DCMAKE_BUILD_TYPE=Debug"
# Everything that's optional
- BUILD_ARGS="-DENABLE_PDF_DOCS=On -DENABLE_IPV6=On -DENABLE_LUA=On"
# Everything that's optional, in Debug-mode
- BUILD_ARGS="-DENABLE_PDF_DOCS=On -DENABLE_IPV6=On -DENABLE_LUA=On -DCMAKE_BUILD_TYPE=Debug"
# Everything that's optional, GTK3
- BUILD_ARGS="-DENABLE_PDF_DOCS=On -DENABLE_IPV6=On -DENABLE_LUA=On -DGTK_BUILD_TYPE=GTK3"
# Everything that's optional, GTK3 in Debug-mode
- BUILD_ARGS="-DENABLE_PDF_DOCS=On -DENABLE_IPV6=On -DENABLE_LUA=On -DGTK_BUILD_TYPE=GTK3 -DCMAKE_BUILD_TYPE=Debug"
# IPV6 + system libnet
- BUILD_ARGS="-DENABLE_IPV6=On -DBUNDLED_LIBNET=Off"
# IPV6 + bundled libnet
- BUILD_ARGS="-DENABLE_IPV6=On -DSYSTEM_LIBNET=Off"
# system curl, only
- BUILD_ARGS="-DBUNDLED_CURL=Off"
# bundled curl, only
- BUILD_ARGS="-DSYSTEM_CURL=Off"
# system check, only
- BUILD_ARGS="-DBUNDLED_LIBCHECK=Off"
# bundled check, only
- BUILD_ARGS="-DSYSTEM_LIBCHECK=Off"
# Lua + system luajit
- BUILD_ARGS="-DENABLE_LUA=On -DBUNDLED_LUAJIT=Off"
# Lua + bundled luajit
- BUILD_ARGS="-DENABLE_LUA=On -DSYSTEM_LUAJIT=Off"
# Disable Gtk
- BUILD_ARGS="-DENABLE_GTK=Off"
# Disable Curses
- BUILD_ARGS="-DENABLE_CURSES=Off"
# Disable Curses and Gtk
- BUILD_ARGS="-DENABLE_GTK=Off -DENABLE_CURSES=Off"
matrix:
allow_failures:
# We expect IPV6 + system libnet + ubuntu to fail :(
- os: linux
env: BUILD_ARGS="-DENABLE_IPV6=On -DBUNDLED_LIBNET=Off"
# We expect system-only curl + ubuntu to fail :(
- os: linux
env: BUILD_ARGS="-DBUNDLED_CURL=Off"
exclude:
- os: osx
env: BUILD_ARGS=""
- os: osx
env: BUILD_ARGS="-DCMAKE_BUILD_TYPE=Debug"
- os: osx
compiler: gcc
env: BUILD_ARGS="-DENABLE_PDF_DOCS=On -DENABLE_IPV6=On -DENABLE_LUA=On"
- os: osx
compiler: gcc
env: BUILD_ARGS="-DENABLE_PDF_DOCS=On -DENABLE_IPV6=On -DENABLE_LUA=On -DCMAKE_BUILD_TYPE=Debug"
- os: osx
compiler: gcc
env: BUILD_ARGS="-DENABLE_PDF_DOCS=On -DENABLE_IPV6=On -DENABLE_LUA=On -DGTK_BUILD_TYPE=GTK3"
- os: osx
compiler: gcc
env: BUILD_ARGS="-DENABLE_PDF_DOCS=On -DENABLE_IPV6=On -DENABLE_LUA=On -DGTK_BUILD_TYPE=GTK3 -DCMAKE_BUILD_TYPE=Debug"
- os: osx
env: BUILD_ARGS="-DENABLE_IPV6=On -DBUNDLED_LIBNET=Off"
- os: osx
env: BUILD_ARGS="-DENABLE_IPV6=On -DSYSTEM_LIBNET=Off"
- os: osx
env: BUILD_ARGS="-DBUNDLED_CURL=Off"
- os: osx
env: BUILD_ARGS="-DSYSTEM_CURL=Off"
- os: osx
env: BUILD_ARGS="-DBUNDLED_LIBCHECK=Off"
- os: osx
env: BUILD_ARGS="-DSYSTEM_LIBCHECK=Off"
- os: osx
env: BUILD_ARGS="-DENABLE_LUA=On -DBUNDLED_LUAJIT=Off"
- os: osx
env: BUILD_ARGS="-DENABLE_LUA=On -DSYSTEM_LUAJIT=Off"
- os: osx
env: BUILD_ARGS="-DENABLE_GTK=Off"
- os: osx
env: BUILD_ARGS="-DENABLE_CURSES=Off"
- os: osx
env: BUILD_ARGS="-DENABLE_GTK=Off -DENABLE_CURSES=Off"
before_install:
- if [ ${TRAVIS_OS_NAME} = "linux" ]; then sudo apt-get update -qq; sudo apt-get install debhelper bison check cmake flex ghostscript libbsd-dev libcurl4-openssl-dev libgtk2.0-dev libltdl-dev libluajit-5.1-dev libncurses5-dev libnet1-dev libpcap-dev libpcre3-dev libssl-dev libgtk-3-dev; fi
- if [ ${TRAVIS_OS_NAME} = "osx" ]; then brew update; brew install cmake check curl; brew install ghostscript gtk+ gtk+3; brew install libidn libnet; brew install luajit openssl pcre rtmpdump; fi
script:
- mkdir build && cd build && cmake -DENABLE_TESTS=On $BUILD_ARGS .. && make && make test_verbose
notifications:
irc:
channels:
- "chat.freenode.net#ettercap-project"
template:
- "ettercap-build #%{build_number} (%{commit} by %{author}): %{message}"
- "See details at %{build_url}"
email: false