forked from Ettercap/ettercap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
163 lines (150 loc) · 5.24 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# See YAML format https://en.wikipedia.org/wiki/YAML
# See Travis CI (Continuous Integration) https://docs.travis-ci.com/
language: c
branches:
except:
gh-pages
compiler:
- gcc
- clang
os:
- osx
- linux
addons:
apt:
packages:
- debhelper
- bison
- check
- cmake
- flex
- groff
- libbsd-dev
- libcurl4-openssl-dev
- libgtk2.0-dev
- libidn11-dev
- librtmp-dev
- libltdl-dev
- libluajit-5.1-dev
- libncurses5-dev
- libnet1-dev
- libpcap-dev
- libpcre3-dev
- libssl-dev
- libgtk-3-dev
- libgeoip-dev
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, GTK2
- BUILD_ARGS="-DENABLE_PDF_DOCS=On -DENABLE_IPV6=On -DENABLE_LUA=On -DGTK_BUILD_TYPE=GTK2"
# Everything that's optional, GTK2 in Debug-mode
- BUILD_ARGS="-DENABLE_PDF_DOCS=On -DENABLE_IPV6=On -DENABLE_LUA=On -DGTK_BUILD_TYPE=GTK2 -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:
# since trusty required libraries are fine now, and travis moved to trusty some years ago.
# 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=GTK2"
- os: osx
compiler: gcc
env: BUILD_ARGS="-DENABLE_PDF_DOCS=On -DENABLE_IPV6=On -DENABLE_LUA=On -DGTK_BUILD_TYPE=GTK2 -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} = "osx" ]; then brew update; brew install check curl; brew install groff gtk+ gtk+3; brew install libidn libnet; brew install luajit openssl pcre rtmpdump geoip; fi
before_script:
- if [ ${TRAVIS_OS_NAME} = "osx" ]; then export BUILD_ARGS="$BUILD_ARGS -DOPENSSL_ROOT_DIR=`brew --prefix openssl`";fi
script:
- if [[ "$CC" == "gcc" && "${BUILD_ARGS}" = "" ]]; then git clone https://github.com/richq/cmake-lint.git; cd cmake-lint; python setup.py install --user; cd -; ./misc/cmakelint.sh; fi
- 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