CI: build and run unit tests
Run `make check` after the project is built in every runner. Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
This commit is contained in:
committed by
Iker Pedrosa
parent
015448b049
commit
0fc697a4b1
@@ -9,7 +9,7 @@ RUN export DEBIAN_PRIORITY=critical \
|
||||
RUN apt-get update -y \
|
||||
&& apt-get dist-upgrade -y
|
||||
RUN apt-get build-dep shadow -y
|
||||
RUN apt-get install libbsd-dev pkgconf -y
|
||||
RUN apt-get install libbsd-dev libcmocka-dev pkgconf -y
|
||||
|
||||
COPY ./ /usr/local/src/shadow/
|
||||
WORKDIR /usr/local/src/shadow/
|
||||
@@ -17,6 +17,7 @@ WORKDIR /usr/local/src/shadow/
|
||||
RUN ./autogen.sh --without-selinux --enable-man --with-yescrypt
|
||||
RUN make -kj4 || true
|
||||
RUN make
|
||||
RUN make check
|
||||
RUN make install
|
||||
|
||||
FROM scratch AS export
|
||||
|
||||
Reference in New Issue
Block a user