Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: third_party/grpc/tools/run_tests/build_artifact_ruby.sh

Issue 1932353002: Initial checkin of gRPC to third_party/ Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « third_party/grpc/tools/run_tests/build_artifact_python.sh ('k') | third_party/grpc/tools/run_tests/build_csharp.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698