| Index: third_party/grpc/tools/run_tests/build_artifact_node.sh
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/workers/resources/echo_wsh.py b/third_party/grpc/tools/run_tests/build_artifact_node.sh
|
| old mode 100644
|
| new mode 100755
|
| similarity index 77%
|
| copy from third_party/WebKit/LayoutTests/http/tests/websocket/workers/resources/echo_wsh.py
|
| copy to third_party/grpc/tools/run_tests/build_artifact_node.sh
|
| index 429f58186e3fce43dc21e81e0f9d7e20c7e0bf70..ef3476a03817b46a099a4547a4d5bb2a0020ffc2
|
| --- a/third_party/WebKit/LayoutTests/http/tests/websocket/workers/resources/echo_wsh.py
|
| +++ b/third_party/grpc/tools/run_tests/build_artifact_node.sh
|
| @@ -1,4 +1,5 @@
|
| -# Copyright 2010, Google Inc.
|
| +#!/bin/bash
|
| +# Copyright 2016, Google Inc.
|
| # All rights reserved.
|
| #
|
| # Redistribution and use in source and binary forms, with or without
|
| @@ -27,20 +28,24 @@
|
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| +NODE_TARGET_ARCH=$1
|
| +source ~/.nvm/nvm.sh
|
|
|
| -from mod_pywebsocket import msgutil
|
| +nvm use 4
|
| +set -ex
|
|
|
| +cd $(dirname $0)/../..
|
|
|
| -_GOODBYE_MESSAGE = 'Goodbye'
|
| +rm -rf build || true
|
|
|
| +mkdir -p artifacts
|
|
|
| -def web_socket_do_extra_handshake(request):
|
| - pass # Always accept.
|
| +npm update
|
|
|
| +node_versions=( 0.12.0 1.0.0 1.1.0 2.0.0 3.0.0 4.0.0 5.0.0 )
|
|
|
| -def web_socket_transfer_data(request):
|
| - while True:
|
| - line = msgutil.receive_message(request)
|
| - msgutil.send_message(request, line)
|
| - if line == _GOODBYE_MESSAGE:
|
| - return
|
| +for version in ${node_versions[@]}
|
| +do
|
| + ./node_modules/.bin/node-pre-gyp configure rebuild package testpackage --target=$version --target_arch=$NODE_TARGET_ARCH
|
| + cp -r build/stage/* artifacts/
|
| +done
|
|
|