ci: Expect builds to always succeed, even when tests are allowed to fail.

This commit is contained in:
Giovanni Mascellani
2023-11-06 14:58:24 +01:00
committed by Alexandre Julliard
parent f0a6c7de1d
commit f8fcfc52d8
Notes: Alexandre Julliard 2023-11-07 22:40:42 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/449
3 changed files with 25 additions and 11 deletions

View File

@@ -11,10 +11,13 @@ set -Eeuxo pipefail
rm -fr build
mkdir build
cd build
../configure CFLAGS="-g -O2 -Wno-implicit-fallthrough -Wno-enum-conversion -Werror" && \
make -j$(sysctl -n hw.ncpu) && \
if ../configure CFLAGS="-g -O2 -Wno-implicit-fallthrough -Wno-enum-conversion -Werror" && \
make -j$(sysctl -n hw.ncpu) ; then
make -j$(sysctl -n hw.ncpu) check || \
touch ../pipeline_failed
touch ../tests_failed
else
touch ../build_failed
fi
mkdir -p ../artifacts/$COMMIT
rsync -Rr config.log test-suite.log tests/*.log tests/*/*.log ../artifacts/$COMMIT || true