mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
travis: build criu and run tests on centos
It is one of our target platforms. Cc: Adrian Reber <areber@redhat.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com> Acked-by: Adrian Reber <areber@redhat.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
c37583942c
commit
35e8a3446f
4 changed files with 38 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
35
scripts/build/Dockerfile.centos
Normal file
35
scripts/build/Dockerfile.centos
Normal file
|
|
@ -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)
|
||||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue