Skip to content
Snippets Groups Projects
Commit 303af9f3 authored by Tim Emiola's avatar Tim Emiola
Browse files

Runs the ruby tests during docker builds

parent 8331591d
No related branches found
No related tags found
No related merge requests found
...@@ -12,14 +12,8 @@ RUN touch /var/local/git/grpc/include/grpc/support/string.h ...@@ -12,14 +12,8 @@ RUN touch /var/local/git/grpc/include/grpc/support/string.h
# Build the C core. # Build the C core.
RUN make install_c -C /var/local/git/grpc RUN make install_c -C /var/local/git/grpc
# Install the grpc gem locally with its dependencies and build the extension # Build ruby gRPC and run its tests
RUN /bin/bash -l -c 'cd /var/local/git/grpc/src/ruby && bundle && rake compile:grpc && gem build grpc.gemspec && gem install grpc' RUN /bin/bash -l -c 'cd /var/local/git/grpc/src/ruby && bundle && rake'
# TODO add a command to run the unittest tests when the bug below is fixed
# - the tests fail due to an error in the C threading library:
# they fail with 'ruby: __pthread_mutex_cond_lock_adjust for unknown reasons' at the end of a testcase
# - however, the interop server and client run OK, so this bug can be investigated
# RUN /bin/bash -l -c 'cd /var/local/git/grpc/src/ruby && bundle && rake'
# Add a cacerts directory containing the Google root pem file, allowing the ruby client to access the production test instance # Add a cacerts directory containing the Google root pem file, allowing the ruby client to access the production test instance
ADD cacerts cacerts ADD cacerts cacerts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment