mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 17:14:28 +00:00
Commit 299e4b4 ("travis: enable ccache for docker/qemu builds") combined
multiple RUN statements in Dockerfiles into a single one, which is good
for performance (as there is an intermediate cache created after each
statement). Unfortunately, it partially did so by combining statements
with use of semicolons, meaning we are ignoring non-zero exit codes.
As a result, failure from make are ignored and Travis builds are all
green.
To fix, replace all occurences of semicolon with &&.
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
41 lines
1.1 KiB
Cheetah
41 lines
1.1 KiB
Cheetah
ARG CC=gcc
|
|
ARG ENV1=FOOBAR
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential \
|
|
protobuf-c-compiler \
|
|
libprotobuf-c0-dev \
|
|
libprotobuf-dev \
|
|
bsdmainutils \
|
|
protobuf-compiler \
|
|
python-minimal \
|
|
libaio-dev \
|
|
libcap-dev \
|
|
iptables \
|
|
libnl-3-dev \
|
|
libselinux-dev \
|
|
pkg-config \
|
|
git-core \
|
|
libnet-dev \
|
|
ccache \
|
|
$CC
|
|
|
|
COPY . /criu
|
|
WORKDIR /criu
|
|
ENV CC="ccache $CC" CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
|
|
|
|
RUN mv .ccache /tmp && make mrproper && ccache -s && \
|
|
date && \
|
|
# Check single object build
|
|
make -j $(nproc) CC="$CC" criu/parasite-syscall.o && \
|
|
# Compile criu
|
|
make -j $(nproc) CC="$CC" && \
|
|
date && \
|
|
# Check that "make mrproper" works
|
|
make mrproper && ! git clean -ndx --exclude=scripts/build \
|
|
--exclude=.config --exclude=test | grep .
|
|
|
|
# Compile tests
|
|
RUN date && make -j $(nproc) CC="$CC" -C test/zdtm && date
|
|
|
|
#RUN make test/compel/handle_binary && ./test/compel/handle_binary
|