-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ env: | |
- secure: "XkLxuM/HGwMzFeCYwITwYM7s053L6JqpLlqJh2oxh9R1sGYy3KieQsmczKccaK+6JomcByBkVJlQFgzK6i5vbEhzZi9Fwa1Y6Hc9c+0Rmx5WHGoTQyPv+WojitM8CBv4DM2vPORlZSMSiI422w6WrjYb6viDaH+8mwhXvPNklP8=" | ||
|
||
matrix: | ||
- DB=mysql OSSEC_TYPE=server GEOIP=yes | ||
- DB=mysql OSSEC_TYPE=server GEOIP=yes COVERITY=yes | ||
- DB=mysql OSSEC_TYPE=server GEOIP=no | ||
- DB=pgsql OSSEC_TYPE=server GEOIP=yes | ||
- DB=pgsql OSSEC_TYPE=server GEOIP=no | ||
|
@@ -45,6 +45,7 @@ matrix: | |
|
||
before_script: | ||
- if [ ${COVERITY_SCAN_BRANCH} == 1 ]; then exit 0; fi | ||
|
||
- sudo apt-get update -qq | ||
- if [[ "${GEOIP}" == "yes" ]]; then ( sudo apt-get install geoip-bin geoip-database libgeoip-dev libgeoip1 ); fi | ||
- if [[ "${PRELUDE}" == "yes" ]]; then ( sudo apt-get install libprelude-dev ); fi | ||
|
@@ -60,6 +61,7 @@ before_script: | |
|
||
script: | ||
- if [ ${COVERITY_SCAN_BRANCH} == 1 ]; then exit 0; fi | ||
|
||
- COMMAND="V=1 TARGET=${OSSEC_TYPE}" | ||
&& if ! [[ "${DB}" = "none" ]]; then COMMAND="${COMMAND} DATABASE=${DB}"; fi | ||
&& if [[ "${GEOIP}" = "yes" ]]; then COMMAND="${COMMAND} USE_GEOIP=1"; fi | ||
|
@@ -91,7 +93,8 @@ addons: | |
name: "ossec/ossec-hids" | ||
#TODO: travis lint does not like this: description: "Build submitted via Travis CI" | ||
notification_email: [email protected] #TODO: ossec-dev mail /slack? | ||
build_command_prepend: "sudo apt-get update -qq | ||
build_command_prepend: "if [ ${COVERITY} != yes ]; then exit 0; fi | ||
&& sudo apt-get update -qq | ||
&& sudo apt-get install geoip-bin geoip-database libgeoip-dev libgeoip1 libprelude-dev libzmq3-dev aptitude | ||
&& wget http://download.zeromq.org/czmq-2.2.0.tar.gz | ||
&& tar xfz czmq-2.2.0.tar.gz | ||
|
@@ -100,9 +103,10 @@ addons: | |
&& make all -j | ||
&& sudo make install | ||
&& sudo aptitude -y install mingw-w64 nsis | ||
&& cd src/ | ||
&& cd ../src/ | ||
&& make clean" | ||
build_command: "make TARGET=server USE_ZEROMQ=yes USE_GEOIP=yes USE_PRELUDE=yes USE_OPENSSL=auto USE_INOTIFY=yes V=1 build -j2 | ||
build_command: "if [ ${COVERITY} != yes ]; then exit 0; fi | ||
&& make TARGET=server USE_ZEROMQ=yes USE_GEOIP=yes USE_PRELUDE=yes USE_OPENSSL=auto USE_INOTIFY=yes V=1 build -j2 | ||
&& make clean | ||
&& make TARGET=agent USE_OPENSSL=auto V=1 build -j2 | ||
&& make clean | ||
|