#!/bin/bash -l

set -e

apt-get -y install ccache
export PATH=/usr/lib/ccache:$PATH

if [ -f binary-builder-compiler-cache/binary-builder-compiler-cache.tgz ]; then
  tar xzf binary-builder-compiler-cache/binary-builder-compiler-cache.tgz
fi

export CCACHE_DIR=`pwd`/.ccache

pushd binary-builder
gem install bundler --no-ri --no-rdoc
bundle install -j4
bundle exec rspec
popd

tar czf ccache.tgz .ccache

#!/bin/bash -l

set -e

apt-get -y install ccache
export PATH=/usr/lib/ccache:$PATH

if [ -f binary-builder-compiler-cache/ccache.tgz ]; then
  tar xzf binary-builder-compiler-cache/ccache.tgz
fi

export CCACHE_DIR=`pwd`/.ccache

pushd binary-builder
gem install bundler --no-ri --no-rdoc
bundle install -j4
bundle exec rspec
popd

tar czf ccache.tgz .ccache

Fix path to ccache archive
Fix path to ccache archive

Signed-off-by: Colin Jackson <a89a308d481f83b953c5ad185298958072312fde@gmail.com>
