add travis.yml for GitHub

This commit is contained in:
Florian Stinglmayr 2018-02-21 10:49:17 +01:00
parent 2da81dc392
commit 6f82a2b4cc
3 changed files with 29 additions and 1 deletions

27
.travis.yml Normal file
View File

@ -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

View File

@ -9,5 +9,6 @@ PATH=$PATH:/usr/local/bin
aclocal $AC_SEARCH_OPTS aclocal $AC_SEARCH_OPTS
autoconf autoconf
autoreconf --install
autoheader autoheader
automake --copy --add-missing automake --copy --add-missing

View File

@ -7,4 +7,4 @@ cd "$(dirname "$0")"
./autogen.sh ./autogen.sh
./configure "$@" ./configure "$@"
make -j4 make