Commit 1099cf06 authored by Andrei Vagin's avatar Andrei Vagin

travis: build criu and run tests on centos

It is one of our target platforms.

Cc: Adrian Reber <areber@redhat.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
Acked-by: 's avatarAdrian Reber <areber@redhat.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 2d965008
...@@ -23,6 +23,7 @@ env: ...@@ -23,6 +23,7 @@ env:
- TR_ARCH=fedora-rawhide - TR_ARCH=fedora-rawhide
- TR_ARCH=fedora-rawhide-aarch64 - TR_ARCH=fedora-rawhide-aarch64
- TR_ARCH=local GCOV=1 - TR_ARCH=local GCOV=1
- TR_ARCH=centos
matrix: matrix:
allow_failures: allow_failures:
- env: TR_ARCH=docker-test - env: TR_ARCH=docker-test
......
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)
QEMU_ARCHES := armv7hf aarch64 ppc64le s390x fedora-rawhide-aarch64 # require qemu 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 := $(ARCHES) alpine
TARGETS_CLANG := $(addsuffix $(TARGETS),-clang) TARGETS_CLANG := $(addsuffix $(TARGETS),-clang)
......
...@@ -11,7 +11,7 @@ ifdef CLANG ...@@ -11,7 +11,7 @@ ifdef CLANG
target-suffix = -clang target-suffix = -clang
endif endif
TARGETS := fedora-asan alpine fedora-rawhide TARGETS := fedora-asan alpine fedora-rawhide centos
ZDTM_OPTIONS := 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 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment