From 4f0149b4e9f17d03917c8e9d72ab27c19db9f24f Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sat, 27 Apr 2019 12:54:08 +0200 Subject: [PATCH] gitlab-ci bug workaround I have jobs that succeed even though the script is failing : Linking ../bin/grafx2-sdl2 /usr/bin/ld: ../obj/unix-sdl2/miscfileformats.o: undefined reference to symbol 'uncompress' //lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:1040: recipe for target '../bin/grafx2-sdl2' failed make[1]: *** [../bin/grafx2-sdl2] Error 1 make[1]: Leaving directory '/builds/miniupnp/grafX2/src' Makefile:17: recipe for target 'grafx2' failed make: *** [grafx2] Error 2 [...] Job succeeded https://gitlab.com/gitlab-com/support-forum/issues/1311 --- .gitlab-ci.yml | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1a4b3ec1..abf33e2f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,9 +9,9 @@ job_linux: - apt-get install -y -qq libsdl1.2-dev libpng-dev libsdl-ttf2.0-dev libsdl-image1.2-dev liblua5.2-dev - apt-get install -y -qq libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev doxygen graphviz script: - - "make -j3 && make ziprelease" - - "API=sdl2 make -j3 && API=sdl2 make ziprelease" - - "make docarchive" + - "make -j3 && make ziprelease || exit 1" + - "API=sdl2 make -j3 && API=sdl2 make ziprelease || exit 1" + - "make docarchive || exit 1" after_script: - "echo $CI_JOB_ID > LINUX_JOB_ID" - "cd 3rdparty; make checkversions" @@ -42,17 +42,17 @@ job_win32: - apt-get update -qq && apt-get install -y -qq zip dos2unix - apt-get install -y -qq gcc-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64-tools nsis script: - - "WIN32CROSS=1 make 3rdparty -j2" - - "WIN32CROSS=1 make -j2" - - "WIN32CROSS=1 make ziprelease" - - "WIN32CROSS=1 make win32installer" - - "WIN32CROSS=1 API=win32 make -j2" - - "WIN32CROSS=1 API=win32 make ziprelease" - - "WIN32CROSS=1 API=win32 make win32installer" - - "WIN32CROSS=1 API=sdl2 make 3rdparty -j2" - - "WIN32CROSS=1 API=sdl2 make -j2" - - "WIN32CROSS=1 API=sdl2 make ziprelease" - - "WIN32CROSS=1 API=sdl2 make win32installer" + - "WIN32CROSS=1 make 3rdparty -j2 || exit 1" + - "WIN32CROSS=1 make -j2 || exit 1" + - "WIN32CROSS=1 make ziprelease || exit 1" + - "WIN32CROSS=1 make win32installer || exit 1" + - "WIN32CROSS=1 API=win32 make -j2 || exit 1" + - "WIN32CROSS=1 API=win32 make ziprelease || exit 1" + - "WIN32CROSS=1 API=win32 make win32installer || exit 1" + - "WIN32CROSS=1 API=sdl2 make 3rdparty -j2 || exit 1" + - "WIN32CROSS=1 API=sdl2 make -j2 || exit 1" + - "WIN32CROSS=1 API=sdl2 make ziprelease || exit 1" + - "WIN32CROSS=1 API=sdl2 make win32installer || exit 1" after_script: - "echo $CI_JOB_ID > WIN32_JOB_ID" artifacts: @@ -67,9 +67,9 @@ job_atari: - apt-get update -qq && apt-get install -y -qq zip dos2unix - "sh ./.install-cross-mint.sh" script: - - "ATARICROSS=1 make 3rdparty -j2" - - "ATARICROSS=1 make -j2" - - "ATARICROSS=1 make ziprelease" + - "ATARICROSS=1 make 3rdparty -j2 || exit 1" + - "ATARICROSS=1 make -j2 || exit 1" + - "ATARICROSS=1 make ziprelease || exit 1" after_script: - "echo $CI_JOB_ID > ATARI_JOB_ID" artifacts: @@ -85,8 +85,8 @@ job_gp2x: - apt-get install -y -qq multiarch-support libc6:i386 - "sh ./.install-gp2x-toolchain.sh" script: - - "NOLUA=1 GP2XCROSS=1 make -j2 grafx2" - - "NOLUA=1 GP2XCROSS=1 make ziprelease" + - "NOLUA=1 GP2XCROSS=1 make -j2 grafx2 || exit 1" + - "NOLUA=1 GP2XCROSS=1 make ziprelease || exit 1" after_script: - "echo $CI_JOB_ID > GP2X_JOB_ID" artifacts: