Skip to content

Commit

Permalink
first travis test
Browse files Browse the repository at this point in the history
  • Loading branch information
wenningerk committed Oct 24, 2017
1 parent c3f7dfb commit bc7c61c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions sbd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc7c61c

Please sign in to comment.