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 28 lines (20 sloc) 0.607 kB
#!/bin/bash
# This LANG declaration is needed for Gherkin
# without it, we get "invalid byte sequence in US-ASCII" errors
# https://github.com/cucumber/gherkin#troubleshooting
export LANG=en_US.UTF-8
set -e
cd $(dirname "$0")
[ -e /etc/smokey.sh ] && . /etc/smokey.sh
if [ "$1" == "" ]; then
echo "Usage: ./cron_json.sh /tmp/smokey.json"
exit 1
else
CACHE_FILE="$1"
fi
TMP_FILE="${CACHE_FILE}.tmp"
rm -f ${TMP_FILE}
/usr/local/bin/govuk_setenv default \
bundle exec cucumber --format json \
-t ~@pending -t ~@disabled_in_icinga > ${TMP_FILE} || true
mv ${TMP_FILE} ${CACHE_FILE}
Jump to Line
Something went wrong with that request. Please try again.