Add ruby 2.6 test (#5528)
* Add ruby 2.6 test * Fix broken tests * Fix compatibility test * Fix bundler version * Use new docker image * Fix broken test * Use new docker image in ruby26 test * Install ruby for macpull/5544/head
parent
b5f9a35b16
commit
de9e1a04a6
14 changed files with 122 additions and 8 deletions
@ -0,0 +1,37 @@ |
||||
FROM debian:jessie |
||||
|
||||
# Install dependencies. We start with the basic ones require to build protoc |
||||
# and the C++ build |
||||
RUN apt-get update && apt-get install -y \ |
||||
autoconf \ |
||||
autotools-dev \ |
||||
build-essential \ |
||||
bzip2 \ |
||||
ccache \ |
||||
curl \ |
||||
gcc \ |
||||
git \ |
||||
libc6 \ |
||||
libc6-dbg \ |
||||
libc6-dev \ |
||||
libgtest-dev \ |
||||
libtool \ |
||||
make \ |
||||
parallel \ |
||||
time \ |
||||
wget \ |
||||
&& apt-get clean |
||||
|
||||
# Install rvm |
||||
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys \ |
||||
409B6B1796C275462A1703113804BB82D39DC0E3 \ |
||||
7D2BAF1CF37B13E2069D6956105BD0E739499BDB |
||||
RUN \curl -sSL https://get.rvm.io | bash -s stable |
||||
|
||||
RUN /bin/bash -l -c "rvm install 2.3.8" |
||||
RUN /bin/bash -l -c "rvm install 2.4.5" |
||||
RUN /bin/bash -l -c "rvm install 2.5.1" |
||||
RUN /bin/bash -l -c "rvm install 2.6.0" |
||||
|
||||
RUN /bin/bash -l -c "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc" |
||||
RUN /bin/bash -l -c "echo 'export PATH=/usr/local/rvm/bin:$PATH' >> ~/.bashrc" |
@ -0,0 +1,18 @@ |
||||
#!/bin/bash |
||||
# |
||||
# This is the top-level script we give to Kokoro as the entry point for |
||||
# running the "pull request" project: |
||||
# |
||||
# This script selects a specific Dockerfile (for building a Docker image) and |
||||
# a script to run inside that image. Then we delegate to the general |
||||
# build_and_run_docker.sh script. |
||||
|
||||
# Change to repo root |
||||
cd $(dirname $0)/../../.. |
||||
|
||||
export DOCKERHUB_ORGANIZATION=protobuftesting |
||||
export DOCKERFILE_DIR=kokoro/linux/dockerfile/test/ruby |
||||
export DOCKER_RUN_SCRIPT=kokoro/linux/pull_request_in_docker.sh |
||||
export OUTPUT_DIR=testoutput |
||||
export TEST_SET="ruby26" |
||||
./kokoro/linux/build_and_run_docker.sh |
@ -0,0 +1,11 @@ |
||||
# Config file for running tests in Kokoro |
||||
|
||||
# Location of the build script in repository |
||||
build_file: "protobuf/kokoro/linux/ruby26/build.sh" |
||||
timeout_mins: 120 |
||||
|
||||
action { |
||||
define_artifacts { |
||||
regex: "**/sponge_log.xml" |
||||
} |
||||
} |
@ -0,0 +1,11 @@ |
||||
# Config file for running tests in Kokoro |
||||
|
||||
# Location of the build script in repository |
||||
build_file: "protobuf/kokoro/linux/ruby26/build.sh" |
||||
timeout_mins: 120 |
||||
|
||||
action { |
||||
define_artifacts { |
||||
regex: "**/sponge_log.xml" |
||||
} |
||||
} |
@ -0,0 +1,11 @@ |
||||
#!/bin/bash |
||||
# |
||||
# Build file to set up and run tests |
||||
|
||||
# Change to repo root |
||||
cd $(dirname $0)/../../.. |
||||
|
||||
# Prepare worker environment to run tests |
||||
source kokoro/macos/prepare_build_macos_rc |
||||
|
||||
./tests.sh ruby26 |
@ -0,0 +1,5 @@ |
||||
# Config file for running tests in Kokoro |
||||
|
||||
# Location of the build script in repository |
||||
build_file: "protobuf/kokoro/macos/ruby26/build.sh" |
||||
timeout_mins: 1440 |
@ -0,0 +1,5 @@ |
||||
# Config file for running tests in Kokoro |
||||
|
||||
# Location of the build script in repository |
||||
build_file: "protobuf/kokoro/macos/ruby26/build.sh" |
||||
timeout_mins: 1440 |
Loading…
Reference in new issue