Skip to content

Commit

Permalink
add travis-integration for build verification
Browse files Browse the repository at this point in the history
The docker build only does build and no testing added at this point.
We can start adding some tests soon.

Signed-off-by: Prasanna Kumar Kalever <[email protected]>
  • Loading branch information
Prasanna Kumar Kalever committed Mar 26, 2019
1 parent a8e1d67 commit 58f4fa0
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sudo: required

service:
- docker

script:
- docker build -f ./extra/docker/Dockerfile.fedora29 .
- docker build -f ./extra/docker/Dockerfile.centos7 .
41 changes: 41 additions & 0 deletions extra/docker/Dockerfile.centos7
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Dockerfile for testing the build of gluster-block based on centos7

FROM centos:centos7

ENV BUILDDIR=/build
RUN mkdir -p $BUILDDIR
WORKDIR $BUILDDIR

COPY . $BUILDDIR

# prepare the system
RUN true \
&& yum -y update && yum clean all \
&& true
RUN true \
&& yum -y install \
git cmake make gcc libnl3 glib2 zlib kmod \
libnl3-devel glib2-devel zlib-devel kmod-devel \
&& true

# glusterfs stuff
RUN true \
&& yum -y install \
glusterfs-api glusterfs-api-devel \
&& true

# ceph stuff
RUN true \
&& yum -y install \
librados2 librados2-devel librbd1 librbd1-devel \
&& true

# build
RUN true \
&& cmake . \
&& make \
&& make check \
&& make install \
&& make clean \
&& true

41 changes: 41 additions & 0 deletions extra/docker/Dockerfile.fedora29
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Dockerfile for testing the build of gluster-block based on Fedora 29

FROM fedora:29

ENV BUILDDIR=/build
RUN mkdir -p $BUILDDIR
WORKDIR $BUILDDIR

COPY . $BUILDDIR

# prepare the system
RUN true \
&& dnf -y update && dnf clean all \
&& true
RUN true \
&& dnf -y install \
git cmake make gcc libnl3 glib2 zlib kmod \
libnl3-devel glib2-devel zlib-devel kmod-devel \
&& true

# glusterfs stuff
RUN true \
&& dnf -y install \
glusterfs-api glusterfs-api-devel \
&& true

# ceph stuff
RUN true \
&& dnf -y install \
librados2 librados2-devel librbd1 librbd1-devel \
&& true

# build
RUN true \
&& cmake . \
&& make \
&& make check \
&& make install \
&& make clean \
&& true

0 comments on commit 58f4fa0

Please sign in to comment.