ci: Wrap complex commands in CI scripts.

This commit is contained in:
Giovanni Mascellani 2023-09-22 10:51:48 +02:00 committed by Alexandre Julliard
parent 335f9fb31e
commit 2dd4211b77
Notes: Alexandre Julliard 2023-09-26 22:47:59 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/359
3 changed files with 11 additions and 3 deletions

View File

@ -14,7 +14,9 @@ set -Eeuxo pipefail
rm -fr build rm -fr build
mkdir build mkdir build
cd build cd build
../configure CROSSCC32="i686-w64-mingw32-gcc -Wno-array-bounds" CROSSCC64="x86_64-w64-mingw32-gcc -Wno-array-bounds" && make -j$(nproc) crosstest || touch ../pipeline_failed ../configure CROSSCC32="i686-w64-mingw32-gcc -Wno-array-bounds" CROSSCC64="x86_64-w64-mingw32-gcc -Wno-array-bounds" && \
make -j$(nproc) crosstest || \
touch ../pipeline_failed
mkdir -p ../artifacts/$COMMIT mkdir -p ../artifacts/$COMMIT
rsync -Rr tests/*.exe ../artifacts/$COMMIT rsync -Rr tests/*.exe ../artifacts/$COMMIT

View File

@ -11,7 +11,10 @@ set -Eeuxo pipefail
rm -fr build rm -fr build
mkdir build mkdir build
cd build cd build
../configure --enable-demos && make -j$(nproc) && make -j$(nproc) check || touch ../pipeline_failed ../configure --enable-demos && \
make -j$(nproc) && \
make -j$(nproc) check || \
touch ../pipeline_failed
mkdir -p ../artifacts/$COMMIT mkdir -p ../artifacts/$COMMIT
rsync -Rr doc/* test-suite.log tests/*.log tests/*/*.log ../artifacts/$COMMIT rsync -Rr doc/* test-suite.log tests/*.log tests/*/*.log ../artifacts/$COMMIT

View File

@ -11,7 +11,10 @@ set -Eeuxo pipefail
rm -fr build rm -fr build
mkdir build mkdir build
cd build cd build
../configure && make -j$(sysctl -n hw.ncpu) && make -j$(sysctl -n hw.ncpu) check || touch ../pipeline_failed ../configure && \
make -j$(sysctl -n hw.ncpu) && \
make -j$(sysctl -n hw.ncpu) check || \
touch ../pipeline_failed
mkdir -p ../artifacts/$COMMIT mkdir -p ../artifacts/$COMMIT
rsync -Rr test-suite.log tests/*.log tests/*/*.log ../artifacts/$COMMIT rsync -Rr test-suite.log tests/*.log tests/*/*.log ../artifacts/$COMMIT