Commit 2d093a17 authored by Andrei Vagin's avatar Andrei Vagin

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: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 833c1045
......@@ -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:
......
Dockerfile.tmpl
\ No newline at end of file
Dockerfile.tmpl
\ No newline at end of file
FROM fedora:latest
ENV ASAN=1
Dockerfile.fedora.tmpl
\ No newline at end of file
Dockerfile.fedora.tmpl
\ No newline at end of file
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)
Dockerfile.tmpl
\ No newline at end of file
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
Dockerfile.tmpl
\ No newline at end of file
Dockerfile.tmpl
\ No newline at end of file
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
......
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