Sha256: 54c67a06f6fd519fbe7bb2ea709cdfafb1607adfb52b7cadf3d90550e53055d6

Contents?: true

Size: 589 Bytes

Versions: 15

Compression:

Stored size: 589 Bytes

Contents

#!/usr/bin/env bash

set -e

rm vgs_api_client-*.gem || true

if [[ -n "${LIB_VERSION}" ]]; then
  echo "Installing lib from rubygems.org ${LIB_VERSION} ..."

  set +e
  ATTEMPT=1
  while [  $ATTEMPT -lt 60 ]; do
    echo "Attempt ${ATTEMPT} ..."

    bundle install --without production --binstubs
    gem install vgs_api_client -v ${LIB_VERSION}

    if [[ $? == 0 ]]; then
      echo "Installed ${LIB_VERSION}"
      break
    fi

    ATTEMPT=$((ATTEMPT+1))

    sleep 5
  done
  set -e
else
  echo "Installing lib from local sources"
  bundle install
fi

bundle exec rspec ./spec/*.rb

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
vgs_api_client-0.0.1.dev202204201702 scripts/test/run.sh
vgs_api_client-0.0.1.dev202204201654 scripts/test/run.sh
vgs_api_client-0.0.1.alpha202204201457 scripts/test/run.sh
vgs_api_client-0.0.1.alpha202204201454 scripts/test/run.sh
vgs_api_client-0.0.1.alpha202204201434 scripts/test/run.sh
vgs_api_client-0.0.1.dev202204201342 scripts/test/run.sh
vgs_api_client-0.0.1.dev202204201339 scripts/test/run.sh
vgs_api_client-0.0.1.dev202204201314 scripts/test/run.sh
vgs_api_client-0.0.1.dev202204201251 scripts/test/run.sh
vgs_api_client-0.0.1.dev202204201227 scripts/test/run.sh
vgs_api_client-0.0.1.dev202204201226 scripts/test/run.sh
vgs_api_client-0.0.1.dev202204192008 scripts/test/run.sh
vgs_api_client-0.0.1.dev202204191932 scripts/test/run.sh
vgs_api_client-0.0.1.dev202204191807 scripts/test/run.sh
vgs_api_client-0.0.1.dev202204191802 scripts/test/run.sh