[CRIU] [PATCH] travis: build criu and run tests on centos
Andrei Vagin
avagin at virtuozzo.com
Thu May 10 02:54:35 MSK 2018
It is one of our target platforms.
Cc: Adrian Reber <areber at redhat.com>
Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
.travis.yml | 1 +
scripts/build/Dockerfile.centos | 35 +++++++++++++++++++++++++++++++++++
scripts/build/Makefile | 2 +-
scripts/travis/Makefile | 2 +-
4 files changed, 38 insertions(+), 2 deletions(-)
create mode 100644 scripts/build/Dockerfile.centos
diff --git a/.travis.yml b/.travis.yml
index 1fc7c3811..1afc39482 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,6 +24,7 @@ env:
- TR_ARCH=fedora-rawhide-aarch64
- TR_ARCH=phaul-test
- TR_ARCH=local GCOV=1
+ - TR_ARCH=centos
matrix:
allow_failures:
- env: TR_ARCH=docker-test
diff --git a/scripts/build/Dockerfile.centos b/scripts/build/Dockerfile.centos
new file mode 100644
index 000000000..e26427d8e
--- /dev/null
+++ b/scripts/build/Dockerfile.centos
@@ -0,0 +1,35 @@
+FROM centos:7
+
+ARG CC=gcc
+ARG ENV1=FOOBAR
+
+RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
+RUN yum install -y \
+ ccache \
+ findutils \
+ gcc \
+ git \
+ iproute \
+ iptables \
+ libaio-devel \
+ libasan \
+ libcap-devel \
+ libnet-devel \
+ libnl3-devel \
+ make \
+ procps-ng \
+ protobuf-c-devel \
+ protobuf-devel \
+ protobuf-python \
+ python \
+ python-ipaddr \
+ python-yaml \
+ tar
+
+COPY . /criu
+WORKDIR /criu
+
+ENV CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
+RUN mv .ccache /tmp && make mrproper && ccache -sz && \
+ date && make -j $(nproc) CC="$CC" && date && ccache -s
+RUN make -C test/zdtm -j $(nproc)
diff --git a/scripts/build/Makefile b/scripts/build/Makefile
index dbf599de3..f333b214a 100644
--- a/scripts/build/Makefile
+++ b/scripts/build/Makefile
@@ -1,5 +1,5 @@
QEMU_ARCHES := armv7hf aarch64 ppc64le s390x fedora-rawhide-aarch64 # require qemu
-ARCHES := $(QEMU_ARCHES) x86_64 fedora-asan fedora-rawhide
+ARCHES := $(QEMU_ARCHES) x86_64 fedora-asan fedora-rawhide centos
TARGETS := $(ARCHES) alpine
TARGETS_CLANG := $(addsuffix $(TARGETS),-clang)
diff --git a/scripts/travis/Makefile b/scripts/travis/Makefile
index cc228f7a2..5a740a034 100644
--- a/scripts/travis/Makefile
+++ b/scripts/travis/Makefile
@@ -11,7 +11,7 @@ ifdef CLANG
target-suffix = -clang
endif
-TARGETS := fedora-asan alpine fedora-rawhide phaul
+TARGETS := fedora-asan alpine fedora-rawhide phaul centos
ZDTM_OPTIONS :=
alpine: ZDTM_OPTIONS=-x zdtm/static/binfmt_misc -x zdtm/static/netns-nf -x zdtm/static/sched_policy00 -x zdtm/static/seccomp_strict -x zdtm/static/sigaltstack -x zdtm/static/signalfd00 -x zdtm/static/config_inotify_irmap
--
2.14.3
More information about the CRIU
mailing list