| Index: third_party/grpc/tools/run_tests/build_artifact_ruby.sh
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/close_wsh.py b/third_party/grpc/tools/run_tests/build_artifact_ruby.sh
|
| old mode 100644
|
| new mode 100755
|
| similarity index 69%
|
| copy from third_party/WebKit/LayoutTests/http/tests/websocket/close_wsh.py
|
| copy to third_party/grpc/tools/run_tests/build_artifact_ruby.sh
|
| index 1b02d66267e294ce83977dac64f075981705647c..2d97b4068bc646340ca2bfa5ab6b24fa368e26dd
|
| --- a/third_party/WebKit/LayoutTests/http/tests/websocket/close_wsh.py
|
| +++ b/third_party/grpc/tools/run_tests/build_artifact_ruby.sh
|
| @@ -1,4 +1,5 @@
|
| -# Copyright 2011, Google Inc.
|
| +#!/bin/bash
|
| +# Copyright 2016, Google Inc.
|
| # All rights reserved.
|
| #
|
| # Redistribution and use in source and binary forms, with or without
|
| @@ -26,28 +27,40 @@
|
| # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| +set -ex
|
|
|
| +SYSTEM=`uname | cut -f 1 -d_`
|
|
|
| -import logging
|
| -_GOODBYE_MESSAGE = u'Goodbye'
|
| +cd $(dirname $0)/../..
|
| +set +ex
|
| +[[ -s /etc/profile.d/rvm.sh ]] && . /etc/profile.d/rvm.sh
|
| +[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
|
| +set -ex
|
|
|
| +if [ "$SYSTEM" == "MSYS" ] ; then
|
| + SYSTEM=MINGW32
|
| +fi
|
| +if [ "$SYSTEM" == "MINGW64" ] ; then
|
| + SYSTEM=MINGW32
|
| +fi
|
|
|
| -def web_socket_do_extra_handshake(request):
|
| - pass # Always accept.
|
| +if [ "$SYSTEM" == "MINGW32" ] ; then
|
| + echo "Need Linux to build the Windows ruby gem."
|
| + exit 1
|
| +fi
|
|
|
| +set +ex
|
| +rvm use default
|
| +gem install bundler --update
|
| +bundle install
|
| +set -ex
|
|
|
| -def web_socket_transfer_data(request):
|
| - while True:
|
| - line = request.ws_stream.receive_message()
|
| - if line is None:
|
| - return
|
| - if isinstance(line, unicode):
|
| - request.ws_stream.send_message(line, binary=False)
|
| - if line == _GOODBYE_MESSAGE:
|
| - return
|
| - else:
|
| - request.ws_stream.send_message(line, binary=True)
|
| +rake gem:native
|
|
|
| +if [ "$SYSTEM" == "Darwin" ] ; then
|
| + rm `ls pkg/*.gem | grep -v darwin`
|
| +fi
|
|
|
| -def web_socket_passive_closing_handshake(request):
|
| - return request.ws_close_code, request.ws_close_reason
|
| +mkdir -p artifacts
|
| +
|
| +cp pkg/*.gem artifacts
|
|
|