From 221dc9ca8b601b35d69b3a6ef5541e36bf6b07ea Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 2 Aug 2018 23:07:53 +0200 Subject: [PATCH] Initial support for Travis-CI Signed-off-by: Joachim Nilsson --- .travis.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..719444d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,27 @@ +# Travis CI integration -- https://travis-ci.org/troglobit/sysklogd +# Defaults to GNU GCC and autotools: ./configure && make && make test +language: c + +# Use docker for quicker builds, it now allows https://docs.travis-ci.com/user/apt/ +sudo: false + +# Test build with both GCC and Clang (LLVM) +compiler: + - gcc + - clang + +addons: + apt: + packages: + - tree + +# Custom build script for the time being, no "make test" yet +script: + - ./autogen.sh + - ./configure --prefix=/tmp/sysklogd + - make clean + - make -j5 + - make install-strip + - tree /tmp/sysklogd + - ldd /tmp/sysklogd/sbin/{sysklogd, klogd} + - size /tmp/sysklogd/sbin/{sysklogd, klogd}