2018-08-03 02:37:53 +05:30
|
|
|
language: c
|
2019-10-31 15:13:08 +05:30
|
|
|
sudo: required
|
2018-08-03 02:37:53 +05:30
|
|
|
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
|
2019-11-03 22:17:55 +05:30
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
|
|
|
# via the "travis encrypt" command using the project repo's public key
|
|
|
|
- secure: "RHZDmXeTezxGvT1XjxnW2VzpqIJJMhbjgmm+iotVcPUWRH4KqNTZV75p0K4bPmEsO4WkQEstW4+c6VZHeU51Pt9KzlgQqzefRS02szdZcaFqzLQJPIDOPbn39YM7TAmf2+QEIJNKy0uH60eqKX2v2gMMP3ddM5SDXJsRamkZb0mB3+9pZbInrXJlNDM1EumHA/t/vjXnIBkdkm1r1GBds4iW51eW2kIgrmbtVC8IF6uRL8qVpxlEfcVKIJ9RiTktefoXwdrFSPonyqWbKDwrC6wo9HyEM9PEY7dXobysUWss6mnWFruefveUEAampwUVk+DLLlW3ZMSG83xDsKZqmzhG74OW9xRBbi5OUphnVJ9J7bbLSBapGHmQcwEKQtAVh1UjnWcZfkK940x7CYWni9z+3gsqcrihmIyAz+iQbgGp8e9CWvf3y9mrRVFPsLhu9z1rf1P0C8+3IM33P2Ll//l3NGOl3R9bNoewMXi9VVvuDgnHeGCzVKsgXG4BtnWZ/8Vr6Cot0spCPuKRTzSThnKx0PuoWLM8NeJFAyF3B4RnFOxL03BHBuNLs083KiLz7Z4GZClZFAgC79O32uy6ZzYcUP7EwOK1fh6miX7+TinFT1Ue31dtVc9XnJq98jUS8L7UKSZMJhZtj1PpaVBXfS4uYdaBkeDVAzwTbu28HIU="
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- echo -n | openssl s_client -connect https://scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
|
|
|
|
|
2018-08-03 02:37:53 +05:30
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- tree
|
2019-10-30 21:44:29 +05:30
|
|
|
- tshark
|
2019-11-03 22:17:55 +05:30
|
|
|
coverity_scan:
|
|
|
|
project:
|
|
|
|
name: "troglobit/sysklogd"
|
|
|
|
description: "RFC5424 compliant syslog daemon and syslog()/syslogp() API for Linux"
|
|
|
|
notification_email: troglobit@gmail.com
|
|
|
|
build_command_prepend: "./autogen.sh && ./configure"
|
|
|
|
build_command: "make"
|
|
|
|
branch_pattern: dev
|
2018-08-03 02:37:53 +05:30
|
|
|
|
2019-11-04 00:22:37 +05:30
|
|
|
# Build test programs as regular user, or clang build may fail
|
2018-08-03 02:37:53 +05:30
|
|
|
script:
|
2019-11-13 13:04:46 +05:30
|
|
|
- echo "PASS 1/2 ===================================================================="
|
2018-08-03 02:37:53 +05:30
|
|
|
- ./autogen.sh
|
2019-11-13 13:04:46 +05:30
|
|
|
- ./configure --prefix=/tmp/sysklogd --disable-silent-rules --with-klogd
|
2018-08-03 02:37:53 +05:30
|
|
|
- make clean
|
2019-11-04 00:22:37 +05:30
|
|
|
- make all
|
|
|
|
- make -C test programs
|
2019-11-03 22:43:54 +05:30
|
|
|
- sudo make check || (which clang; cat test/test-suite.log; false)
|
2019-11-06 20:52:06 +05:30
|
|
|
- (cat test/test-suite.log; cat test/start.log; cat test/api.log)
|
2018-08-03 02:37:53 +05:30
|
|
|
- make install-strip
|
2019-11-05 13:06:11 +05:30
|
|
|
- mkdir -p /tmp/example; cp -a example/example.* /tmp/example/
|
|
|
|
- (cd /tmp/example; PKG_CONFIG_LIBDIR=/tmp/sysklogd/lib/pkgconfig make -f example.mk)
|
2018-08-03 02:37:53 +05:30
|
|
|
- tree /tmp/sysklogd
|
2019-11-13 13:04:46 +05:30
|
|
|
- echo "PASS 2/2 ===================================================================="
|
|
|
|
- make distclean
|
|
|
|
- ./configure --prefix=/tmp/syslogd --disable-silent-rules
|
|
|
|
- make all
|
|
|
|
- make install-strip
|
|
|
|
- tree /tmp/syslogd
|