mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
travis: add a job to test on the fedora rawhide
This job is optional and it don't affect the status of a whole job. Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
@@ -8,7 +8,7 @@ env:
|
||||
- TR_ARCH=local GCOV=1
|
||||
- TR_ARCH=local CLANG=1
|
||||
- TR_ARCH=alpine
|
||||
- TR_ARCH=asan
|
||||
- TR_ARCH=fedora-asan
|
||||
- TR_ARCH=x86_64
|
||||
- TR_ARCH=x86_64 CLANG=1
|
||||
- TR_ARCH=armv7hf
|
||||
@@ -20,9 +20,11 @@ env:
|
||||
- TR_ARCH=ppc64le CLANG=1
|
||||
- TR_ARCH=alpine CLANG=1
|
||||
- TR_ARCH=docker-test
|
||||
- TR_ARCH=fedora-rawhide
|
||||
matrix:
|
||||
allow_failures:
|
||||
- env: TR_ARCH=docker-test
|
||||
- env: TR_ARCH=fedora-rawhide
|
||||
script:
|
||||
- sudo make CCACHE=1 -C scripts/travis $TR_ARCH
|
||||
after_success:
|
||||
|
1
scripts/build/Dockerfile.aarch64.tmpl
Symbolic link
1
scripts/build/Dockerfile.aarch64.tmpl
Symbolic link
@@ -0,0 +1 @@
|
||||
Dockerfile.tmpl
|
1
scripts/build/Dockerfile.armv7hf.tmpl
Symbolic link
1
scripts/build/Dockerfile.armv7hf.tmpl
Symbolic link
@@ -0,0 +1 @@
|
||||
Dockerfile.tmpl
|
2
scripts/build/Dockerfile.fedora-asan.hdr
Normal file
2
scripts/build/Dockerfile.fedora-asan.hdr
Normal file
@@ -0,0 +1,2 @@
|
||||
FROM fedora:latest
|
||||
ENV ASAN=1
|
1
scripts/build/Dockerfile.fedora-asan.tmpl
Symbolic link
1
scripts/build/Dockerfile.fedora-asan.tmpl
Symbolic link
@@ -0,0 +1 @@
|
||||
Dockerfile.fedora.tmpl
|
1
scripts/build/Dockerfile.fedora-rawhide.hdr
Normal file
1
scripts/build/Dockerfile.fedora-rawhide.hdr
Normal file
@@ -0,0 +1 @@
|
||||
FROM fedora:rawhide
|
1
scripts/build/Dockerfile.fedora-rawhide.tmpl
Symbolic link
1
scripts/build/Dockerfile.fedora-rawhide.tmpl
Symbolic link
@@ -0,0 +1 @@
|
||||
Dockerfile.fedora.tmpl
|
@@ -1,4 +1,3 @@
|
||||
FROM fedora:latest
|
||||
ARG CC=gcc
|
||||
ARG ENV1=FOOBAR
|
||||
|
||||
@@ -10,7 +9,7 @@ COPY . /criu
|
||||
WORKDIR /criu
|
||||
|
||||
ENV CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
|
||||
RUN mv .ccache /tmp && make mrproper && ccache -s && \
|
||||
date && make -j $(nproc) ASAN=1 CC="$CC" && date
|
||||
RUN make ASAN=1 -C test/zdtm -j $(nproc)
|
||||
RUN mv .ccache /tmp && make mrproper && ccache -s && ccache -z && \
|
||||
date && make -j $(nproc) CC="$CC" && date && ccache -s
|
||||
RUN make -C test/zdtm -j $(nproc)
|
||||
|
1
scripts/build/Dockerfile.ppc64le.tmpl
Symbolic link
1
scripts/build/Dockerfile.ppc64le.tmpl
Symbolic link
@@ -0,0 +1 @@
|
||||
Dockerfile.tmpl
|
14
scripts/build/Dockerfile.rawhide
Normal file
14
scripts/build/Dockerfile.rawhide
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM fedora:rawhide
|
||||
|
||||
ARG CC=gcc
|
||||
|
||||
RUN dnf install -y git gcc make
|
||||
RUN dnf install -y protobuf-devel protobuf-c-devel libaio-devel libcap-devel libnl3-devel libnet-devel
|
||||
RUN dnf install -y python ccache libasan findutils tar python-yaml protobuf-python iptables iproute python-ipaddr procps-ng
|
||||
|
||||
COPY . /criu
|
||||
WORKDIR /criu
|
||||
RUN make mrproper && make -j $(nproc)
|
||||
|
||||
RUN pip install protobuf
|
||||
RUN make -C test/zdtm/static env00
|
1
scripts/build/Dockerfile.s390x.tmpl
Symbolic link
1
scripts/build/Dockerfile.s390x.tmpl
Symbolic link
@@ -0,0 +1 @@
|
||||
Dockerfile.tmpl
|
1
scripts/build/Dockerfile.x86_64.tmpl
Symbolic link
1
scripts/build/Dockerfile.x86_64.tmpl
Symbolic link
@@ -0,0 +1 @@
|
||||
Dockerfile.tmpl
|
@@ -1,6 +1,6 @@
|
||||
QEMU_ARCHES := armv7hf aarch64 ppc64le s390x # require qemu
|
||||
ARCHES := $(QEMU_ARCHES) x86_64
|
||||
TARGETS := $(ARCHES) alpine fedora-asan
|
||||
ARCHES := $(QEMU_ARCHES) x86_64 fedora-asan fedora-rawhide
|
||||
TARGETS := $(ARCHES) alpine
|
||||
TARGETS_CLANG := $(addsuffix $(TARGETS),-clang)
|
||||
|
||||
all: $(TARGETS) $(TARGETS_CLANG)
|
||||
@@ -12,7 +12,7 @@ $(1): Dockerfile.$(1)
|
||||
endef
|
||||
$(foreach arch,$(ARCHES),$(eval $(call ARCH_DEP,$(arch))))
|
||||
|
||||
Dockerfile.%: Dockerfile.%.hdr Dockerfile.tmpl
|
||||
Dockerfile.%: Dockerfile.%.hdr Dockerfile.%.tmpl
|
||||
cat $^ > $@
|
||||
|
||||
qemu-user-static:
|
||||
@@ -38,6 +38,8 @@ endef
|
||||
$(foreach t,$(TARGETS),$(eval $(call CLANG_DEP,$(t))))
|
||||
|
||||
%-clang: DB_CC=--build-arg CC=clang
|
||||
Dockerfile.fedora-asan: override DOCKER_TMPL=Dockerfile.fedora.tmpl
|
||||
Dockerfile.fedora-rawhide: override DOCKER_TMPL=Dockerfile.fedora.tmpl
|
||||
%-clang: DB_ENV=--build-arg ENV1=CCACHE_CPP2
|
||||
s390x-clang: DB_CC=--build-arg CC=clang-3.8
|
||||
.PHONY: $(TARGETS_CLANG)
|
||||
|
@@ -11,15 +11,13 @@ ifdef CLANG
|
||||
target-suffix = -clang
|
||||
endif
|
||||
|
||||
alpine:
|
||||
$(MAKE) -C ../build $@$(target-suffix)
|
||||
docker run --rm -it --privileged -v /lib/modules:/lib/modules criu-alpine ./test/zdtm.py run -t zdtm/static/env00
|
||||
TARGETS := fedora-asan alpine fedora-rawhide
|
||||
|
||||
asan:
|
||||
$(TARGETS):
|
||||
echo 'DOCKER_OPTS="--storage-driver=devicemapper"' > /etc/default/docker
|
||||
restart docker
|
||||
$(MAKE) -C ../build fedora-asan
|
||||
docker run --rm -it --privileged -v /lib/modules:/lib/modules criu-fedora-asan ./scripts/travis/asan.sh
|
||||
$(MAKE) -C ../build $@$(target-suffix)
|
||||
docker run --rm -it --privileged -v /lib/modules:/lib/modules criu-$@ ./scripts/travis/asan.sh
|
||||
|
||||
docker-test:
|
||||
./docker-test.sh
|
||||
|
Reference in New Issue
Block a user