Skip to content

Commit 665d111

Browse files
committed
Set environment to silence deprecation warnings on CI
1 parent 30da7c1 commit 665d111

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/ci/github/script

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ print_success() {
109109
# $2 - number of log lines
110110
run_tests() {
111111
echo 'Running tests...' >&2
112-
make test | tail -n "$2" >> "$1" 2>&1
112+
make NODE_FLAGS='--no-deprecation' test | tail -n "$2" >> "$1" 2>&1
113113
if [[ "$?" -ne 0 ]]; then
114114
echo 'Tests failed.' >&2
115115
return 1
@@ -124,7 +124,7 @@ run_tests() {
124124
# $2 - number of log lines
125125
run_test_coverage() {
126126
echo 'Running test coverage...' >&2
127-
make test-cov | tail -n "$2" >> "$1" 2>&1
127+
make NODE_FLAGS='--no-deprecation' test-cov | tail -n "$2" >> "$1" 2>&1
128128
if [[ "$?" -ne 0 ]]; then
129129
echo 'Tests failed.' >&2
130130
return 1
@@ -155,7 +155,7 @@ send_coverage() {
155155
# $2 - number of log lines
156156
run_benchmarks() {
157157
echo 'Running benchmarks...' >&2
158-
make benchmark | tail -n "$2" >> "$1" 2>&1
158+
make NODE_FLAGS='--no-deprecation' benchmark | tail -n "$2" >> "$1" 2>&1
159159
if [[ "$?" -ne 0 ]]; then
160160
echo 'Benchmarks failed.' >&2
161161
return 1
@@ -170,7 +170,7 @@ run_benchmarks() {
170170
# $2 - number of log lines
171171
run_examples() {
172172
echo 'Running examples...' >&2
173-
make examples | tail -n "$2" >> "$1" 2>&1
173+
make NODE_FLAGS='--no-deprecation' examples | tail -n "$2" >> "$1" 2>&1
174174
if [[ "$?" -ne 0 ]]; then
175175
echo 'Examples failed.' >&2
176176
return 1

0 commit comments

Comments
 (0)