File tree 2 files changed +9
-26
lines changed 2 files changed +9
-26
lines changed Original file line number Diff line number Diff line change @@ -77,12 +77,6 @@ matrix:
77
77
- ./scripts/publish.sh --toolset=${TOOLSET:-} --debug=$([ "${BUILDTYPE}" == 'debug' ] && echo "true" || echo "false")
78
78
script :
79
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
86
80
# Sanitizer build node v12/Debug
87
81
- os : linux
88
82
env : BUILDTYPE=debug TOOLSET=asan CXXFLAGS="-fext-numeric-literals"
@@ -108,12 +102,6 @@ matrix:
108
102
- ./scripts/publish.sh --toolset=${TOOLSET:-} --debug=$([ "${BUILDTYPE}" == 'debug' ] && echo "true" || echo "false")
109
103
script :
110
104
- true
111
- # Overrides `install` to avoid initializing clang toolchain
112
- install :
113
- - make ${BUILDTYPE}
114
- # Overrides `script` to disable publishing
115
- before_script :
116
- - npm test
117
105
# Coverage build
118
106
- os : linux
119
107
env : BUILDTYPE=debug CXXFLAGS="--coverage" LDFLAGS="--coverage"
Original file line number Diff line number Diff line change @@ -28,27 +28,22 @@ function is_pr_merge() {
28
28
# `publish` is used to publish binaries to s3 via commit messages if:
29
29
# - the commit message includes [publish binary]
30
30
# - the commit message includes [republish binary]
31
- # - the commit is not a pr_merge (checked with `is_pr_merge` function)
32
31
function publish() {
33
32
echo " dumping binary meta..."
34
33
./node_modules/.bin/node-pre-gyp reveal --loglevel=error $@
35
34
36
35
echo " determining publishing status..."
37
36
38
- if [[ $( is_pr_merge) ]]; then
39
- echo " Skipping publishing because this is a PR merge commit"
40
- else
41
- echo " Commit message: ${COMMIT_MESSAGE} "
37
+ echo " Commit message: ${COMMIT_MESSAGE} "
42
38
43
- if [[ ${COMMIT_MESSAGE} =~ " [publish binary]" ]]; then
44
- echo " Publishing"
45
- ./node_modules/.bin/node-pre-gyp package publish $@
46
- elif [[ ${COMMIT_MESSAGE} =~ " [republish binary]" ]]; then
47
- echo " Re-Publishing"
48
- ./node_modules/.bin/node-pre-gyp package unpublish publish $@
49
- else
50
- echo " Skipping publishing since we did not detect either [publish binary] or [republish binary] in commit message"
51
- fi
39
+ if [[ ${COMMIT_MESSAGE} =~ " [publish binary]" ]]; then
40
+ echo " Publishing"
41
+ ./node_modules/.bin/node-pre-gyp package publish $@
42
+ elif [[ ${COMMIT_MESSAGE} =~ " [republish binary]" ]]; then
43
+ echo " Re-Publishing"
44
+ ./node_modules/.bin/node-pre-gyp package unpublish publish $@
45
+ else
46
+ echo " Skipping publishing since we did not detect either [publish binary] or [republish binary] in commit message"
52
47
fi
53
48
}
54
49
You can’t perform that action at this time.
0 commit comments