Sha256: cf75eee1f0e2bc996c20634764542647b86316b778f03cb8b5d06a5a2f8df51b

Contents?: true

Size: 1.12 KB

Versions: 5

Compression:

Stored size: 1.12 KB

Contents

#!/bin/bash -xe

BUNDLER_VERSION=1.3.1
GEMSET=surveyor

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

# TMPDIR under the workspace causes gconfd-2 to stop responding and eat all
# memory when Firefox is running for the Selenium tests. TMPDIR in user home
# seems to work fine.
export TMPDIR="${HOME}/tmp/surveyor-ci-${CI_RUBY}"

if [ -n "${RAILS_VERSION}" ]; then
    GEMSET="${GEMSET}-${RAILS_VERSION}"
    TMPDIR="${TMPDIR}-${RAILS_VERSION}"
fi

rm -rf "${TMPDIR}"
mkdir -p "${TMPDIR}"

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:all --trace

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
affectiva-surveyor-1.5.0.pre.disco.2 ci-exec.sh
hssc_surveyor-1.4.3.pre ci-exec.sh
hssc_surveyor-1.4.2.pre ci-exec.sh
hssc_surveyor-1.4.1.pre ci-exec.sh
surveyor-1.4.0 ci-exec.sh