Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add travis-integration for build verification #542

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 tcmu-runner 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 tcmu-runner 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