Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Olena
pylene
Commits
69445cd7
Commit
69445cd7
authored
Jan 28, 2019
by
Michaël Roynard
Browse files
Add address sanitizer support on CI
parent
b602e2d4
Pipeline
#12776
failed with stages
in 6 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
69445cd7
...
...
@@ -70,6 +70,49 @@ distcheck-linux-clang-debug:
CC
:
"
clang"
#############
# Sanitizer #
#############
.job-sanitize-linux-base
:
&distcheck-sanitize-linux-base
stage
:
test
script
:
-
mkdir build && cd build
-
conan install .. -pr buildfarm --build=missing
-
pacman -Sy --noconfirm llvm
# TO BE DELETED
-
cmake ..
-DCMAKE_BUILD_TYPE=$PYLENE_CONFIGURATION
-DCMAKE_C_FLAGS="-g3 -fsanitize=address -fno-omit-frame-pointer"
-DCMAKE_CXX_FLAGS="-g3 -fsanitize=address -fno-omit-frame-pointer"
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address -fno-omit-frame-pointer"
-DCMAKE_SHARED_LINKER_FLAGS="-fsanitize=address -fno-omit-frame-pointer"
-DCMAKE_MODULE_LINKER_FLAGS="-fsanitize=address -fno-omit-frame-pointer"
-
export ASAN_OPTIONS=symbolize=1
-
export ASAN_SYMBOLIZER_PATH=$(which llvm-symbolizer)
-
cmake --build .
--config $PYLENE_CONFIGURATION
--target check
dependencies
:
[]
artifacts
:
reports
:
junit
:
build/tests/UT*.xml
distcheck-sanitize-linux-gcc-debug
:
<<
:
*distcheck-sanitize-linux-base
variables
:
PYLENE_CONFIGURATION
:
"
Debug"
CXX
:
"
g++"
CC
:
"
gcc"
distcheck-sanitize-linux-clang-debug
:
<<
:
*distcheck-sanitize-linux-base
variables
:
PYLENE_CONFIGURATION
:
"
Debug"
CXX
:
"
clang++"
CC
:
"
clang"
#########
# Bench #
#########
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment