Sha256: e25646e0738f8df754e7913cceeb080abb70a2af50920c818113eb7a90ebeafa

Contents?: true

Size: 983 Bytes

Versions: 41

Compression:

Stored size: 983 Bytes

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

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
    echo "BUNDLE_GEMFILE=Gemfile.activesupport$ACTIVESUPPORT bundle install"
    BUNDLE_GEMFILE=Gemfile.activesupport$ACTIVESUPPORT bundle install
  else 
    echo "bundle install"
    bundle install
  fi
  touch $CACHE_SIGNATURE_FILE
fi

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
lhs-16.1.4 cider-ci/bin/bundle
lhs-16.1.3 cider-ci/bin/bundle
lhs-16.1.2 cider-ci/bin/bundle
lhs-16.1.1 cider-ci/bin/bundle
lhs-16.1.0 cider-ci/bin/bundle
lhs-16.0.1 cider-ci/bin/bundle
lhs-16.0.0 cider-ci/bin/bundle
lhs-15.7.0 cider-ci/bin/bundle
lhs-15.6.1 cider-ci/bin/bundle
lhs-15.6.0 cider-ci/bin/bundle
lhs-15.5.1 cider-ci/bin/bundle
lhs-15.5.0 cider-ci/bin/bundle
lhs-15.4.1 cider-ci/bin/bundle
lhs-15.4.0 cider-ci/bin/bundle
lhs-15.4.0.pre.hasone.1 cider-ci/bin/bundle
lhs-15.3.3 cider-ci/bin/bundle
lhs-15.3.3.pre.fixoptions.1 cider-ci/bin/bundle
lhs-15.3.2 cider-ci/bin/bundle
lhs-15.3.1 cider-ci/bin/bundle
lhs-15.3.1.pre.fixlhc.1 cider-ci/bin/bundle