Skip to content
Snippets Groups Projects
Commit c1f1b414 authored by Soeren Peters's avatar Soeren Peters
Browse files

Adds a deploy stage with a clang build analyzer phase.

parent 98e50a7c
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ image: irmb/virtualfluids-deps:latest
stages:
- build
- test
- deploy
build:
stage: build
......@@ -28,4 +29,41 @@ test:
- export DEBIAN_FRONTEND=noninteractive
script:
- build/bin/basicsTests
\ No newline at end of file
- build/bin/basicsTests
benchmark_ClangBuildAnalyzer:
stage: deploy
only:
variables:
- $ENABLE_BENCHMARKS
tags:
- docker-benchmark
before_script:
- export DEBIAN_FRONTEND=noninteractive
- apt-get update
- cmake --version
- ccache --version
- mpirun --version
- export CC=clang
- export CXX=clang++
- $CXX --version
- cd /tmp
- git clone https://github.com/aras-p/ClangBuildAnalyzer.git
- cd ClangBuildAnalyzer
- cmake .
- make
- export PATH+=:$(pwd)
script:
- mkdir $CI_PROJECT_DIR/build
- cd $CI_PROJECT_DIR/build
- cmake .. -DBUILD_VF_CPU=ON -DUSE_OPENMP=OFF -DCMAKE_CXX_FLAGS=-ftime-trace
- ClangBuildAnalyzer --start .
- make
- ClangBuildAnalyzer --stop . CBA
- ClangBuildAnalyzer --analyze CBA
\ No newline at end of file
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