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

[ci] Added win compiler warnings check.

parent 9abe1608
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ build win: ...@@ -17,7 +17,7 @@ build win:
-DOGS_BUILD_PROCESSES=GroundwaterFlow ` -DOGS_BUILD_PROCESSES=GroundwaterFlow `
-DOGS_USE_PYTHON=ON ` -DOGS_USE_PYTHON=ON `
-DOGS_CI_TESTRUNNER_REPEAT=1 -DOGS_CI_TESTRUNNER_REPEAT=1
- cmake --build . - cmake --build . | Tee-Object -FilePath make.output
- cmake --build . --target tests - cmake --build . --target tests
- cmake --build . --target ctest - cmake --build . --target ctest
- cp Testing/**/Test.xml Tests/ctest.xml - cp Testing/**/Test.xml Tests/ctest.xml
...@@ -5,9 +5,14 @@ compiler warnings: ...@@ -5,9 +5,14 @@ compiler warnings:
allow_failure: true allow_failure: true
dependencies: dependencies:
- build - build
- build win
script: script:
- cd build - exit_code=0
- "if [[ $(cat make.output | grep warning -i) ]]; then echo 'There were compiler warnings:'; cat make.output | grep warning -i; exit 1; fi" - cd build
- "if [[ $(cat make.output | grep warning -i) ]]; then echo 'There were compiler warnings:'; cat make.output | grep warning -i; exit_code=1; fi"
- cd ../build-win
- "if [[ $(cat make.output | grep ': warning' -i) ]]; then echo 'There were compiler warnings:'; cat make.output | grep ': warning' -i; exit_code=1; fi"
- exit $exit_code
ctest results: ctest results:
......
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