Skip to content

Commit

Permalink
fix .travis.yml file #3
Browse files Browse the repository at this point in the history
  • Loading branch information
cgzones committed Feb 6, 2015
1 parent 2b16ec0 commit 3b59ad5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3b59ad5

Please sign in to comment.