Skip to content

Commit ccc4441

Browse files
author
3np
committed
publish binaries for node14
1 parent d811bdd commit ccc4441

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,37 @@ matrix:
5252
osx_image: xcode11
5353
env: BUILDTYPE=release
5454
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
5586
# Sanitizer build node v12/Debug
5687
- os: linux
5788
env: BUILDTYPE=debug TOOLSET=asan CXXFLAGS="-fext-numeric-literals"

0 commit comments

Comments
 (0)