File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,37 @@ matrix:
52
52
osx_image : xcode11
53
53
env : BUILDTYPE=release
54
54
node_js : 12
55
+ # Sanitizer build node v14/Debug
56
+ - os : linux
57
+ env : BUILDTYPE=debug TOOLSET=asan CXXFLAGS="-fext-numeric-literals"
58
+ node_js : 14
59
+ sudo : required
60
+ # Overrides `install` to set up custom asan flags
61
+ install :
62
+ - ./scripts/setup.sh --config local.env
63
+ # put mason and clang++ on PATH
64
+ - source local.env
65
+ # Note: to build without stopping on errors remove the -fno-sanitize-recover=all flag
66
+ # You might want to do this if there are multiple errors and you want to see them all before fixing
67
+ - export CXXFLAGS="${MASON_SANITIZE_CXXFLAGS} -fno-sanitize-recover=all"
68
+ - export LDFLAGS="${MASON_SANITIZE_LDFLAGS}"
69
+ - make ${BUILDTYPE}
70
+ # Overrides `script` to disable asan LD_PRELOAD before publishing
71
+ before_script :
72
+ - export LD_PRELOAD=${MASON_LLVM_RT_PRELOAD}
73
+ - export ASAN_OPTIONS=fast_unwind_on_malloc=0:${ASAN_OPTIONS}
74
+ - npm test
75
+ - unset LD_PRELOAD
76
+ # after successful tests, publish binaries if specified in commit message
77
+ - ./scripts/publish.sh --toolset=${TOOLSET:-} --debug=$([ "${BUILDTYPE}" == 'debug' ] && echo "true" || echo "false")
78
+ script :
79
+ - true
80
+ # Overrides `install` to avoid initializing clang toolchain
81
+ install :
82
+ - make ${BUILDTYPE}
83
+ # Overrides `script` to disable publishing
84
+ before_script :
85
+ - npm test
55
86
# Sanitizer build node v12/Debug
56
87
- os : linux
57
88
env : BUILDTYPE=debug TOOLSET=asan CXXFLAGS="-fext-numeric-literals"
You can’t perform that action at this time.
0 commit comments