Commit 4717e62f authored by Jan Kiene's avatar Jan Kiene
Browse files

make build job turn yellow when warnigns are present

parent 60322b6a
Loading
Loading
Loading
Loading
+15 −6
Original line number Diff line number Diff line
variables:
  TESTV_DIR: "/usr/local/testv"

  BUILD_OUTPUT: "build_output.txt"

# prevent running two pipelines on pushes to merge request branches
workflow:
@@ -38,15 +38,24 @@ stages:
    - if [ ! -d "$TESTV_DIR" ]; then mkdir -p $TESTV_DIR; fi
    - cp -r scripts/testv/* $TESTV_DIR/

# template for build jobs to include the check for warnings
.build-job-with-check-for-warnings:
  extends: .test-job-linux
  stage: build
  allow_failure:
    exit_codes:
      - 123
  after_script:
    - if [ ! -f "$BUILD_OUTPUT" ]; then echo "$BUILD_OUTPUT file is missing!"; exit 1; fi
    - echo "$CI_BUILDS_DIR"
    - $CI_BUILDS_DIR/ci/check_for_warnings.py $BUILD_OUTPUT

# build all components of the project, i.e. codec itself, the unittests, the prerenderer and the standalone version of the TD object renderer
build-codec-linux:
  extends: .test-job-linux
  extends: .build-job-with-check-for-warnings
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
  stage: build
  script:
    - bash ci/build_all_linux.sh
    - make -j 2>&1 | tee $BUILD_OUTPUT

build-codec-linux-cmake:
  extends: .test-job-linux