Commit e21d7dba authored by Norby, Tom's avatar Norby, Tom
Browse files

#3. Setup manual fortify run in gitlab.

parent efc89193
Pipeline #100755 passed with stages
in 15 minutes and 7 seconds
variables: variables:
GIT_SUBMODULE_STRATEGY: normal GIT_SUBMODULE_STRATEGY: normal
stages: stages:
- test - test
- analysis - analysis
workflow:
rules:
- if: $CI_MERGE_REQUEST_ID
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH == "master"
mac_llvm_testing: mac_llvm_testing:
stage: test
tags: tags:
- mac - mac
script: script:
...@@ -28,6 +36,7 @@ mac_llvm_testing: ...@@ -28,6 +36,7 @@ mac_llvm_testing:
-D ExperimentalTest -D ExperimentalTest
linux_gcc_testing: linux_gcc_testing:
stage: test
tags: tags:
- linux - linux
script: script:
...@@ -50,6 +59,13 @@ linux_gcc_testing: ...@@ -50,6 +59,13 @@ linux_gcc_testing:
-D ExperimentalBuild -D ExperimentalBuild
-D ExperimentalTest -D ExperimentalTest
windows_msvc_testing:
stage: test
tags:
- nsmwin10
script:
- ci\windows_testing.bat
linux_analysis: linux_analysis:
stage: analysis stage: analysis
tags: tags:
...@@ -80,8 +96,33 @@ linux_analysis: ...@@ -80,8 +96,33 @@ linux_analysis:
-D ExperimentalCoverage -D ExperimentalCoverage
allow_failure: true allow_failure: true
windows_msvc_testing: Linux-fortify:
stage: analysis
tags: tags:
- nsmwin10 - linux
rules:
- when: manual
script: script:
- ci\windows_testing.bat - which git
- git --version
- mkdir build
- cd build
- module load cmake qt/5.9.0 fortify
- export CC="sourceanalyzer -b rsm gcc"
- export CXX="sourceanalyzer -b rsm g++"
- cmake -Drsm_ENABLE_TESTS=OFF
-DOPENSSL_ROOT_DIR=/opt/vendors/openssl/1.1.1d/
-DLibSSH_DIR=/opt/vendors/libssh/0.9.3/lib64/cmake/libssh/
-Drsm_ENABLE_rsmcore=ON
-Drsm_ENABLE_rsmwidgets=OFF ..
## clean after cmake configure
- sourceanalyzer -b rsm -clean
- make
- sourceanalyzer -b rsm -scan -f scanResults.fpr
- ReportGenerator -format PDF -f rsmReport.pdf -source scanResults.fpr -template "DeveloperWorkbook.xml"
- mv rsmReport.pdf ..
artifacts:
paths:
- rsmReport.pdf
expire_in: 1 week
allow_failure: true
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment