Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (17 sloc) 0.748 kB
#!/bin/sh
set -x
# Clean up untracked files. This is mainly to remove `smokey-rest-client.log`,
# otherwise it builds up between jobs.
git clean -fdx
if [ -z $MYTASK ]; then
MYTASK="test:skyscapenetwork"
fi
# This removes rbenv shims from the PATH where there is no
# .ruby-version file. This is because certain gems call their
# respective tasks with ruby -S which causes the following error to
# appear: ruby: no Ruby script found in input (LoadError).
if [ ! -f .ruby-version ]; then
export PATH=$(printf $PATH | awk 'BEGIN { RS=":"; ORS=":" } !/rbenv/' | sed 's/:$//')
fi
bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment --quiet
RESTCLIENT_LOG="log/smokey-rest-client.log" govuk_setenv default bundle exec rake $MYTASK
Jump to Line
Something went wrong with that request. Please try again.