Skip to content
Snippets Groups Projects
Verified Commit 3220daac authored by Lars Bilke's avatar Lars Bilke
Browse files

[ci] Added compiler warnings job.

parent 6f275496
No related branches found
No related tags found
No related merge requests found
stages: stages:
- test - test
- checks
- package - package
variables: variables:
CONTAINER_GCC_IMAGE: $CI_REGISTRY_IMAGE:gcc-$CI_COMMIT_REF_SLUG CONTAINER_GCC_IMAGE: $CI_REGISTRY_IMAGE:gcc-$CI_COMMIT_REF_SLUG
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
include: include:
- local: '/scripts/ci/extends/container-maker-setup.yml' - local: '/scripts/ci/extends/container-maker-setup.yml'
- local: '/scripts/ci/jobs/build_image.yml' - local: '/scripts/ci/jobs/build_image.yml'
- local: '/scripts/ci/jobs/build.yml' - local: '/scripts/ci/jobs/build.yml'
- local: '/scripts/ci/jobs/checks.yml'
- local: '/scripts/ci/jobs/container.yml' - local: '/scripts/ci/jobs/container.yml'
...@@ -20,7 +20,8 @@ build: ...@@ -20,7 +20,8 @@ build:
- cd build - cd build
script: script:
- cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DOGS_BUILD_PROCESSES=GroundwaterFlow - cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DOGS_USE_CONAN=OFF-DOGS_BUILD_PROCESSES=GroundwaterFlow
- cmake --build . > >(tee make.output)
- cmake --build . --target tests - cmake --build . --target tests
- cmake --build . --target ctest -j 8 - cmake --build . --target ctest -j 8
...@@ -28,6 +29,8 @@ build: ...@@ -28,6 +29,8 @@ build:
paths: paths:
- build/Testing/**/*.xml - build/Testing/**/*.xml
- build/Tests/testrunner.xml - build/Tests/testrunner.xml
- build/make.output
expire_in: 1 week
reports: reports:
junit: junit:
- build/Tests/testrunner.xml - build/Tests/testrunner.xml
......
...@@ -5,8 +5,6 @@ build_image: ...@@ -5,8 +5,6 @@ build_image:
# - ThirdParty/container-maker # - ThirdParty/container-maker
tags: tags:
- docker-shell - docker-shell
variables:
GIT_STRATEGY: fetch
extends: .container-maker-setup extends: .container-maker-setup
script: script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
......
compiler warnings:
stage: checks
variables:
GIT_STRATEGY: none
script:
- cd build
- "if [[ $(cat make.output | grep warning -i) ]]; then echo 'There were compiler warnings:'; cat make.output | grep warning -i; exit 1; fi"
allow_failure: true
dependencies:
- build
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment