Skip to content

Commit c4ead2c

Browse files
author
Dane Springmeyer
committed
ensure failed publish actually fails [publish binary]
1 parent 6f948a4 commit c4ead2c

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

.travis.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ install:
2929
# run tests
3030
script:
3131
- npm test
32-
33-
# after successful tests, publish binaries if specified in commit message
34-
after_script_default: &publish
32+
# after successful tests, publish binaries if specified in commit message
3533
- ./scripts/publish.sh --toolset=${TOOLSET:-} --debug=$([ "${BUILDTYPE}" == 'debug' ] && echo "true" || echo "false")
3634

3735
# the matrix allows you to specify different operating systems and environments to
@@ -42,38 +40,33 @@ matrix:
4240
- os: linux
4341
env: BUILDTYPE=release
4442
node_js: 4
45-
after_script: *publish
4643
# linux publishable node v4/debug
4744
- os: linux
4845
env: BUILDTYPE=debug
4946
node_js: 4
50-
after_script: *publish
5147
# linux publishable node v6
5248
- os: linux
5349
env: BUILDTYPE=release
5450
node_js: 6
55-
after_script: *publish
5651
# linux publishable node v6/debug
5752
- os: linux
5853
env: BUILDTYPE=debug
5954
node_js: 6
60-
after_script: *publish
6155
# osx publishable node v4
6256
- os: osx
6357
osx_image: xcode8.2
6458
env: BUILDTYPE=release
6559
node_js: 4
66-
after_script: *publish
6760
# osx publishable node v6
6861
- os: osx
6962
osx_image: xcode8.2
7063
env: BUILDTYPE=release
7164
node_js: 6
72-
after_script: *publish
7365
# Sanitizer build node v4/Debug
7466
- os: linux
7567
env: BUILDTYPE=debug TOOLSET=asan
7668
node_js: 4
69+
# Overrides `install` to set up custom asan flags
7770
install:
7871
- ./scripts/setup.sh --config local.env
7972
# put mason and clang++ on PATH
@@ -83,19 +76,21 @@ matrix:
8376
- export CXXFLAGS="${MASON_SANITIZE_CXXFLAGS} -fno-sanitize-recover=all"
8477
- export LDFLAGS="${MASON_SANITIZE_LDFLAGS}"
8578
- make ${BUILDTYPE}
79+
# Overrides `script` to disable asan LD_PRELOAD before publishing
8680
script:
8781
- export LD_PRELOAD=${MASON_LLVM_RT_PRELOAD}
8882
- export ASAN_OPTIONS=fast_unwind_on_malloc=0:${ASAN_OPTIONS}
89-
- export CXXFLAGS="${CXXFLAGS} -fno-sanitize-recover=all"
90-
- make ${BUILDTYPE}
91-
- export LD_PRELOAD=${MASON_LLVM_RT_PRELOAD}
9283
- npm test
93-
after_script: *publish
84+
- unset LD_PRELOAD
85+
# after successful tests, publish binaries if specified in commit message
86+
- ./scripts/publish.sh --toolset=${TOOLSET:-} --debug=$([ "${BUILDTYPE}" == 'debug' ] && echo "true" || echo "false")
9487
# Coverage build
9588
- os: linux
9689
env: BUILDTYPE=debug CXXFLAGS="--coverage" LDFLAGS="--coverage"
9790
node_js: 4
98-
after_script:
91+
# Overrides `script` to publish coverage data to codecov
92+
script:
93+
- npm test
9994
- mason install llvm-cov ${MASON_LLVM_RELEASE}
10095
- mason link llvm-cov ${MASON_LLVM_RELEASE}
10196
- which llvm-cov

0 commit comments

Comments
 (0)