Sha256: 744d6ac74a43a1f19aed08850549c5bc9f95a183dde26a570ca3362af0ece33c

Contents?: true

Size: 884 Bytes

Versions: 3

Compression:

Stored size: 884 Bytes

Contents

#!/bin/bash

# This file runs tests for merges, PRs, and nightlies.
# There are a few rules for what tests are run:
#  * PRs run all non-acceptance tests for every library.
#  * Merges run all non-acceptance tests for every library, and acceptance tests for all altered libraries.
#  * Nightlies run all acceptance tests for every library.

set -eo pipefail

# Debug: show build environment
env | grep KOKORO

cd github/google-api-ruby-client/

versions=($RUBY_VERSIONS)

# Temporary workaround for a known bundler+docker issue:
# https://github.com/bundler/bundler/issues/6154
export BUNDLE_GEMFILE=

# Capture failures
EXIT_STATUS=0 # everything passed
function set_failed_status {
    EXIT_STATUS=1
}

for version in "${versions[@]}"; do
    rbenv global "$version"
    echo "Using Ruby $version"
    (bundle update && bundle exec rake) || set_failed_status
done

exit $EXIT_STATUS

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
google-api-client-0.28.7 .kokoro/build.sh
google-api-client-0.28.6 .kokoro/build.sh
google-api-client-0.28.5 .kokoro/build.sh