From 6f82a2b4cc6d199cf92c01d39cf867e2171a7c72 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Wed, 21 Feb 2018 10:49:17 +0100 Subject: [PATCH] add travis.yml for GitHub --- .travis.yml | 27 +++++++++++++++++++++++++++ autogen.sh | 1 + build.sh | 2 +- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..49a8b89 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,27 @@ +language: c +sudo: false + +compiler: + - clang + - gcc + +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - automake + - pkg-config + - libbsd-dev + +install: + - wget http://mirrors.kernel.org/ubuntu/pool/universe/c/cmocka/libcmocka-dev_1.0.1-2_amd64.deb + - wget http://mirrors.kernel.org/ubuntu/pool/universe/c/cmocka/libcmocka0_1.0.1-2_amd64.deb + - sha256sum libcmocka-dev_1.0.1-2_amd64.deb | grep -q edb0dcfa14893b0a03375c4fe3b852043ce8fca8f2397cde340562554f6d50eb + - sha256sum libcmocka0_1.0.1-2_amd64.deb | grep -q 797155b45a8288a860c4ed9dd3f161420f09ebf362de30166d9f6b98bfc27dd0 + - sudo dpkg -i libcmocka0_1.0.1-2_amd64.deb + - sudo dpkg -i libcmocka-dev_1.0.1-2_amd64.deb + +script: + - ./build.sh + - make check diff --git a/autogen.sh b/autogen.sh index b4f8d9d..685cf6d 100755 --- a/autogen.sh +++ b/autogen.sh @@ -9,5 +9,6 @@ PATH=$PATH:/usr/local/bin aclocal $AC_SEARCH_OPTS autoconf +autoreconf --install autoheader automake --copy --add-missing diff --git a/build.sh b/build.sh index 17f0890..26e6bf8 100755 --- a/build.sh +++ b/build.sh @@ -7,4 +7,4 @@ cd "$(dirname "$0")" ./autogen.sh ./configure "$@" -make -j4 +make