mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-04 00:05:26 +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 GCOV=1
|
||||||
- TR_ARCH=local CLANG=1
|
- TR_ARCH=local CLANG=1
|
||||||
- TR_ARCH=alpine
|
- TR_ARCH=alpine
|
||||||
- TR_ARCH=asan
|
- TR_ARCH=fedora-asan
|
||||||
- TR_ARCH=x86_64
|
- TR_ARCH=x86_64
|
||||||
- TR_ARCH=x86_64 CLANG=1
|
- TR_ARCH=x86_64 CLANG=1
|
||||||
- TR_ARCH=armv7hf
|
- TR_ARCH=armv7hf
|
||||||
@@ -20,9 +20,11 @@ env:
|
|||||||
- TR_ARCH=ppc64le CLANG=1
|
- TR_ARCH=ppc64le CLANG=1
|
||||||
- TR_ARCH=alpine CLANG=1
|
- TR_ARCH=alpine CLANG=1
|
||||||
- TR_ARCH=docker-test
|
- TR_ARCH=docker-test
|
||||||
|
- TR_ARCH=fedora-rawhide
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- env: TR_ARCH=docker-test
|
- env: TR_ARCH=docker-test
|
||||||
|
- env: TR_ARCH=fedora-rawhide
|
||||||
script:
|
script:
|
||||||
- sudo make CCACHE=1 -C scripts/travis $TR_ARCH
|
- sudo make CCACHE=1 -C scripts/travis $TR_ARCH
|
||||||
after_success:
|
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 CC=gcc
|
||||||
ARG ENV1=FOOBAR
|
ARG ENV1=FOOBAR
|
||||||
|
|
||||||
@@ -10,7 +9,7 @@ COPY . /criu
|
|||||||
WORKDIR /criu
|
WORKDIR /criu
|
||||||
|
|
||||||
ENV CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
|
ENV CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
|
||||||
RUN mv .ccache /tmp && make mrproper && ccache -s && \
|
RUN mv .ccache /tmp && make mrproper && ccache -s && ccache -z && \
|
||||||
date && make -j $(nproc) ASAN=1 CC="$CC" && date
|
date && make -j $(nproc) CC="$CC" && date && ccache -s
|
||||||
RUN make ASAN=1 -C test/zdtm -j $(nproc)
|
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
|
QEMU_ARCHES := armv7hf aarch64 ppc64le s390x # require qemu
|
||||||
ARCHES := $(QEMU_ARCHES) x86_64
|
ARCHES := $(QEMU_ARCHES) x86_64 fedora-asan fedora-rawhide
|
||||||
TARGETS := $(ARCHES) alpine fedora-asan
|
TARGETS := $(ARCHES) alpine
|
||||||
TARGETS_CLANG := $(addsuffix $(TARGETS),-clang)
|
TARGETS_CLANG := $(addsuffix $(TARGETS),-clang)
|
||||||
|
|
||||||
all: $(TARGETS) $(TARGETS_CLANG)
|
all: $(TARGETS) $(TARGETS_CLANG)
|
||||||
@@ -12,7 +12,7 @@ $(1): Dockerfile.$(1)
|
|||||||
endef
|
endef
|
||||||
$(foreach arch,$(ARCHES),$(eval $(call ARCH_DEP,$(arch))))
|
$(foreach arch,$(ARCHES),$(eval $(call ARCH_DEP,$(arch))))
|
||||||
|
|
||||||
Dockerfile.%: Dockerfile.%.hdr Dockerfile.tmpl
|
Dockerfile.%: Dockerfile.%.hdr Dockerfile.%.tmpl
|
||||||
cat $^ > $@
|
cat $^ > $@
|
||||||
|
|
||||||
qemu-user-static:
|
qemu-user-static:
|
||||||
@@ -38,6 +38,8 @@ endef
|
|||||||
$(foreach t,$(TARGETS),$(eval $(call CLANG_DEP,$(t))))
|
$(foreach t,$(TARGETS),$(eval $(call CLANG_DEP,$(t))))
|
||||||
|
|
||||||
%-clang: DB_CC=--build-arg CC=clang
|
%-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
|
%-clang: DB_ENV=--build-arg ENV1=CCACHE_CPP2
|
||||||
s390x-clang: DB_CC=--build-arg CC=clang-3.8
|
s390x-clang: DB_CC=--build-arg CC=clang-3.8
|
||||||
.PHONY: $(TARGETS_CLANG)
|
.PHONY: $(TARGETS_CLANG)
|
||||||
|
@@ -11,15 +11,13 @@ ifdef CLANG
|
|||||||
target-suffix = -clang
|
target-suffix = -clang
|
||||||
endif
|
endif
|
||||||
|
|
||||||
alpine:
|
TARGETS := fedora-asan alpine fedora-rawhide
|
||||||
$(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
|
|
||||||
|
|
||||||
asan:
|
$(TARGETS):
|
||||||
echo 'DOCKER_OPTS="--storage-driver=devicemapper"' > /etc/default/docker
|
echo 'DOCKER_OPTS="--storage-driver=devicemapper"' > /etc/default/docker
|
||||||
restart docker
|
restart docker
|
||||||
$(MAKE) -C ../build fedora-asan
|
$(MAKE) -C ../build $@$(target-suffix)
|
||||||
docker run --rm -it --privileged -v /lib/modules:/lib/modules criu-fedora-asan ./scripts/travis/asan.sh
|
docker run --rm -it --privileged -v /lib/modules:/lib/modules criu-$@ ./scripts/travis/asan.sh
|
||||||
|
|
||||||
docker-test:
|
docker-test:
|
||||||
./docker-test.sh
|
./docker-test.sh
|
||||||
|
Reference in New Issue
Block a user