Files
jekyll/script/test
Nicholas Burlett d39d0cea19 Create 'tmp' dir for test_tags if it doesn't exist
Rather than use script/test to create the tmp directory, create it in a setup block for the appropriate context in the `TestTags` test.
2015-03-22 22:52:16 -07:00

16 lines
216 B
Bash
Executable File

#! /bin/bash
set -e
# Usage:
# script/test
# script/test <test_file>
if [ -d test/dest ]
then rm -r test/dest
fi
if [[ $# -lt 1 ]]
then time bundle exec rake test
else time bundle exec ruby -Itest "$@"
fi