Sha256: 422ee0796441abd1f6bce9a3eec1d1b46754a8fca2fe56332a54cabb94d63f6a

Contents?: true

Size: 722 Bytes

Versions: 1

Compression:

Stored size: 722 Bytes

Contents

#!/bin/bash -xe

BUNDLER_VERSION=1.0.18
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 update

bundle exec rake ci:spec --trace

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ncs_mdes-0.4.2 ci-exec.sh