Travis-CI: Fix build w/o messing up example code build

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-11-13 17:54:35 +01:00
parent e373165a3a
commit b0ff1aa5c7

View File

@ -31,12 +31,12 @@ addons:
# Build test programs as regular user, or clang build may fail # Build test programs as regular user, or clang build may fail
script: script:
- ./autogen.sh - ./autogen.sh
- ./configure --prefix= --disable-silent-rules - ./configure --prefix=/tmp/sysklogd --disable-silent-rules --with-systemd=/tmp/sysklogd/lib/systemd/system
- make clean - make clean
- make all - make all
- make -C test programs - make -C test programs
- sudo make check || (which clang; cat test/test-suite.log; cat test/start.log; cat test/api.log; false) - sudo make check || (which clang; cat test/test-suite.log; cat test/start.log; cat test/api.log; false)
- make install-strip DESTDIR=/tmp/sysklogd - make install-strip
- mkdir -p /tmp/example; cp -a example/example.* /tmp/example/ - mkdir -p /tmp/example; cp -a example/example.* /tmp/example/
- (cd /tmp/example; PKG_CONFIG_LIBDIR=/tmp/sysklogd/lib/pkgconfig make -f example.mk) - (cd /tmp/example; PKG_CONFIG_LIBDIR=/tmp/sysklogd/lib/pkgconfig make -f example.mk)
- tree /tmp/sysklogd - tree /tmp/sysklogd