-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add travis-integration for build verification
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
Showing
3 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|