Sha256: fa9402552adb5b4c613fbf4ba067ff257766dec1a67a56ab9466fff57ec49c10

Contents?: true

Size: 763 Bytes

Versions: 6

Compression:

Stored size: 763 Bytes

Contents

#!/bin/bash -xe

BUNDLER_VERSION=1.1.5
GEMSET=ncs_mdes

if [ -z $CI_RUBY ]; then
    echo "CI_RUBY must be set"
    exit 1
fi

set +xe
echo "Initializing RVM"
source ~/.rvm/scripts/rvm
set -xe

# On the overnight build, reinstall all gems
if [ `date +%H` -lt 5 ]; then
    set +xe
    echo "Purging gemset to verify that all deps can still be installed"
    rvm --force $CI_RUBY gemset delete $GEMSET
    set -xe
fi

RVM_CONFIG="${CI_RUBY}@${GEMSET}"
set +xe
echo "Switching to ${RVM_CONFIG}"
rvm use $RVM_CONFIG
set -xe

which ruby
ruby -v

set +e
gem list -i bundler -v $BUNDLER_VERSION
if [ $? -ne 0 ]; then
  set -e
  gem install bundler -v $BUNDLER_VERSION
fi
set -e

bundle _${BUNDLER_VERSION}_ update

bundle _${BUNDLER_VERSION}_ exec rake ci:spec --trace

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ncs_mdes-0.12.0 ci-exec.sh
ncs_mdes-0.11.0 ci-exec.sh
ncs_mdes-0.10.0 ci-exec.sh
ncs_mdes-0.9.0 ci-exec.sh
ncs_mdes-0.8.1 ci-exec.sh
ncs_mdes-0.8.0 ci-exec.sh