GitLab CI: Add ENABLE_DEBUG to MR pipelines
Keep debug code enabled in CI for merge requests and ensure assertions are enabled when running the test suite.
This commit is contained in:
parent
756d0f99e2
commit
ada90ffcdf
|
@ -654,7 +654,7 @@ Clang + Code Checks:
|
|||
- cd build
|
||||
- printf "\e[0Ksection_start:%s:cmake_section[collapsed=true]\r\e[0KRunning CMake" "$( date +%s)"
|
||||
# We don't have an "All options" job, so build fuzzshark and tfshark here.
|
||||
- cmake -DENABLE_CHECKHF_CONFLICT=on -DCMAKE_EXPORT_COMPILE_COMMANDS=on -DBUILD_fuzzshark=ON -DBUILD_tfshark=On -DBUILD_logray=ON -DENABLE_CCACHE=ON -DENABLE_WERROR=ON -G Ninja ..
|
||||
- cmake -DENABLE_CHECKHF_CONFLICT=on -DCMAKE_EXPORT_COMPILE_COMMANDS=on -DBUILD_fuzzshark=ON -DBUILD_tfshark=On -DBUILD_logray=ON -DENABLE_DEBUG=ON -DENABLE_CCACHE=ON -DENABLE_WERROR=ON -G Ninja ..
|
||||
- printf "\e[0Ksection_end:%s:cmake_section\r\e[0K" "$( date +%s)"
|
||||
- printf "\e[0Ksection_start:%s:asn1_section[collapsed=true]\r\e[0KRegenerating ASN.1 dissectors" "$( date +%s)"
|
||||
- ninja asn1
|
||||
|
@ -710,7 +710,7 @@ Windows Build:
|
|||
- wireshark-windows-merge-req
|
||||
needs: [ 'Commit Check' ]
|
||||
script:
|
||||
- cmake -G "Visual Studio 17 2022" -A x64 -DENABLE_LTO=off ..
|
||||
- cmake -G "Visual Studio 17 2022" -A x64 -DENABLE_LTO=off -DENABLE_DEBUG=ON ..
|
||||
- msbuild /verbosity:minimal /maxcpucount Wireshark.sln
|
||||
- msbuild /verbosity:minimal /maxcpucount test-programs.vcxproj
|
||||
- C:\Windows\py.exe -m pytest --disable-gui
|
||||
|
@ -729,6 +729,13 @@ Windows Qt5 Build:
|
|||
macOS Build:
|
||||
extends: .build-macos
|
||||
rules: !reference [.if-w-w-only-merge-request]
|
||||
script:
|
||||
- printf "\e[0Ksection_start:%s:cmake_section[collapsed=true]\r\e[0KRunning CMake" "$( date +%s)"
|
||||
- cmake -G Ninja -DENABLE_CCACHE=ON -DENABLE_DEBUG=ON -DTEST_EXTRA_ARGS=--disable-capture ..
|
||||
- printf "\e[0Ksection_end:%s:cmake_section\r\e[0K" "$( date +%s)"
|
||||
- ninja
|
||||
- ninja test-programs
|
||||
- pytest
|
||||
needs: [ 'Commit Check' ]
|
||||
|
||||
# Adapted from https://www.synopsys.com/blogs/software-security/integrating-coverity-scan-with-gitlab-ci/
|
||||
|
|
Loading…
Reference in New Issue