Skip to content

Commit

Permalink
ci: Add GCC sanitizers job
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Aug 10, 2020
1 parent 426fe65 commit 10dacc0
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ commands:
- ~/.hunter/_Base/Cache
- run:
name: "Build"
command: cmake --build ~/build --target <<parameters.target>> -- -j12
command: cmake --build ~/build --target <<parameters.target>> -- -j6

test:
description: "Test"
Expand Down Expand Up @@ -258,7 +258,7 @@ jobs:
sed -i 's|$(pwd)/||' ~/build/fizzy.lcov
codecov --required --file ~/build/fizzy.lcov -X gcov
sanitizers:
sanitizers-clang:
executor: linux-clang-latest
environment:
BUILD_TYPE: RelWithDebInfo
Expand All @@ -275,6 +275,24 @@ jobs:
expected_failed: 9
expected_skipped: 6215

sanitizers-gcc:
executor: linux-gcc-latest
environment:
BUILD_TYPE: RelWithDebInfo
CMAKE_OPTIONS: -DENABLE_ASSERTIONS=ON -DSANITIZE=address,pointer-compare,pointer-subtract,leak,undefined
ASAN_OPTIONS: detect_invalid_pointer_pairs=2
UBSAN_OPTIONS: halt_on_error=1
steps:
- checkout
- build
- test
- benchmark:
min_time: "0.01"
- spectest:
expected_passed: 5589
expected_failed: 9
expected_skipped: 6215

sanitizers-macos:
executor: macos
environment:
Expand Down Expand Up @@ -417,7 +435,8 @@ workflows:
- release-macos
- coverage
- cxx20
- sanitizers
- sanitizers-clang
- sanitizers-gcc
- sanitizers-macos
- fuzzing
- spectest:
Expand Down

0 comments on commit 10dacc0

Please sign in to comment.