diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..dd13bd4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,21 @@ +sudo: required +language: c + +env: + global: + - DOCKER_BUILD_IMAGE=alectolytic/rpmbuilder + - OS_ARCH=x86_64 + - PACKAGE=sbd + matrix: + - OS_TYPE=centos OS_DIST=epel OS_VERSION=7 + - OS_TYPE=centos OS_DIST=epel OS_VERSION=6 + +services: + - docker + +install: true + +script: + - make -f Makefile.am spec export PACKAGE=${PACKAGE} + - docker run -v ${PWD}:/sources -v ${PWD}:/output ${DOCKER_BUILD_IMAGE}:${OS_TYPE}-${OS_VERSION} + - ls ${PWD}/sbd*.${OS_ARCH}.rpm diff --git a/sbd.spec b/sbd.spec index e643c53..b935210 100644 --- a/sbd.spec +++ b/sbd.spec @@ -41,6 +41,7 @@ BuildRequires: libuuid-devel BuildRequires: libxml2-devel BuildRequires: pkgconfig BuildRequires: python-devel +BuildRequires: make %if 0%{?rhel} > 0 ExclusiveArch: i686 x86_64 s390x