Sha256: 23aeb985c2657c5a1bd9f36f8fcf7623a8337c2d8f0f1219dd0bd699894f635f

Contents?: true

Size: 1.4 KB

Versions: 78

Compression:

Stored size: 1.4 KB

Contents

#!/usr/bin/env bash
set -eux

export PATH=~/.rubies/$RUBY/bin:$PATH
rm -f .bundle/config

if [ ! -f ~/.rubies/$RUBY/bin/bundle ]; then
  gem install bundler
fi

# install bundler v. 1.17.3 in order to be able to run the tests with
# ACTIVESUPPORT=4 because rails (= 4.2.0) depends on bundler (< 2.0, >= 1.3.0)
gem install bundler:1.17.3

sed "s/^source 'https:\/\/rubygems\.intra\.local\.ch'*/source 'http\:\/\/52.29.7.59:9292'/g" Gemfile > Gemfile.tmp
mv Gemfile.tmp Gemfile

DIGEST=$(git ls-tree HEAD --\
  cider-ci.yml cider-ci Gemfile.lock \
  | openssl dgst -sha1 | cut -d ' ' -f 2)

if [ ! -z ${ACTIVESUPPORT:-} ]; then
  DIGEST=$(echo "$DIGEST $ACTIVESUPPORT")
fi

DIGEST=$(echo "$DIGEST $PATH" \
 | openssl dgst -sha1 | cut -d ' ' -f 2)

echo "DIGEST"
echo "${DIGEST}"

CACHE_SIGNATURE_FILE="/tmp/bundle_cache_signature_${DIGEST}"

if [ ! -f  $CACHE_SIGNATURE_FILE ] ; then
  if [ ! -z ${ACTIVESUPPORT:-} ]; then
    if [ ! -z ${BUNDLER:-} ]; then
      echo "BUNDLE_GEMFILE=Gemfile.activesupport$ACTIVESUPPORT bundle $BUNDLER install"
      BUNDLE_GEMFILE=Gemfile.activesupport$ACTIVESUPPORT bundle $BUNDLER install
    else
      echo "BUNDLE_GEMFILE=Gemfile.activesupport$ACTIVESUPPORT bundle install"
      BUNDLE_GEMFILE=Gemfile.activesupport$ACTIVESUPPORT bundle install
    fi
  else
    echo "bundle install"
    bundle $BUNDLER install
  fi
  touch $CACHE_SIGNATURE_FILE
fi

echo "bundle install"
bundle $BUNDLER install

Version data entries

78 entries across 78 versions & 2 rubygems

Version Path
lhs-25.0.4 cider-ci/bin/bundle
lhs-25.0.3 cider-ci/bin/bundle
lhs-25.0.2 cider-ci/bin/bundle
lhs-25.0.1 cider-ci/bin/bundle
lhs-25.0.0 cider-ci/bin/bundle
lhc-13.1.0 cider-ci/bin/bundle
lhc-13.0.0 cider-ci/bin/bundle
lhc-12.3.0 cider-ci/bin/bundle
lhc-12.2.1 cider-ci/bin/bundle
lhc-12.2.0 cider-ci/bin/bundle
lhs-24.1.2 cider-ci/bin/bundle
lhc-12.1.3 cider-ci/bin/bundle
lhc-12.1.2 cider-ci/bin/bundle
lhs-24.1.1 cider-ci/bin/bundle
lhs-24.1.0 cider-ci/bin/bundle
lhs-24.1.0.pre.2 cider-ci/bin/bundle
lhs-24.1.0.pre.1 cider-ci/bin/bundle
lhs-24.0.0 cider-ci/bin/bundle
lhc-12.1.1 cider-ci/bin/bundle
lhc-12.1.0 cider-ci/bin/bundle