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
|
2020-09-01 02:39:52 +05:30
|
|
|
- clang
|
2018-08-03 02:37:53 +05:30
|
|
|
|
2020-01-05 18:02:42 +05:30
|
|
|
# The secure: declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
|
|
|
# using the project repo's public key:
|
|
|
|
# travis encrypt COVERITY_SCAN_TOKEN="foo"
|
2019-11-03 22:17:55 +05:30
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- secure: "RHZDmXeTezxGvT1XjxnW2VzpqIJJMhbjgmm+iotVcPUWRH4KqNTZV75p0K4bPmEsO4WkQEstW4+c6VZHeU51Pt9KzlgQqzefRS02szdZcaFqzLQJPIDOPbn39YM7TAmf2+QEIJNKy0uH60eqKX2v2gMMP3ddM5SDXJsRamkZb0mB3+9pZbInrXJlNDM1EumHA/t/vjXnIBkdkm1r1GBds4iW51eW2kIgrmbtVC8IF6uRL8qVpxlEfcVKIJ9RiTktefoXwdrFSPonyqWbKDwrC6wo9HyEM9PEY7dXobysUWss6mnWFruefveUEAampwUVk+DLLlW3ZMSG83xDsKZqmzhG74OW9xRBbi5OUphnVJ9J7bbLSBapGHmQcwEKQtAVh1UjnWcZfkK940x7CYWni9z+3gsqcrihmIyAz+iQbgGp8e9CWvf3y9mrRVFPsLhu9z1rf1P0C8+3IM33P2Ll//l3NGOl3R9bNoewMXi9VVvuDgnHeGCzVKsgXG4BtnWZ/8Vr6Cot0spCPuKRTzSThnKx0PuoWLM8NeJFAyF3B4RnFOxL03BHBuNLs083KiLz7Z4GZClZFAgC79O32uy6ZzYcUP7EwOK1fh6miX7+TinFT1Ue31dtVc9XnJq98jUS8L7UKSZMJhZtj1PpaVBXfS4uYdaBkeDVAzwTbu28HIU="
|
|
|
|
|
|
|
|
before_install:
|
2020-01-05 18:02:42 +05:30
|
|
|
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
|
2019-11-03 22:17:55 +05:30
|
|
|
|
2020-03-12 23:48:15 +05:30
|
|
|
# Use Ubuntu 18.04 LTS for builds
|
|
|
|
dist: bionic
|
|
|
|
|
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
|
2019-12-08 04:36:12 +05:30
|
|
|
build_command_prepend: "./autogen.sh && ./configure"
|
2020-01-05 18:02:42 +05:30
|
|
|
build_command: "make clean all"
|
2019-11-03 22:17:55 +05:30
|
|
|
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:
|
|
|
|
- ./autogen.sh
|
2019-11-13 22:24:35 +05:30
|
|
|
- ./configure --prefix=/tmp/sysklogd --disable-silent-rules --with-systemd=/tmp/sysklogd/lib/systemd/system
|
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-13 14:27:15 +05:30
|
|
|
- sudo make check || (which clang; cat test/test-suite.log; cat test/start.log; cat test/api.log; false)
|
2019-11-13 22:24:35 +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
|