mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 09:18:11 -05:00
20 lines
253 B
Bash
Executable File
20 lines
253 B
Bash
Executable File
#! /bin/bash
|
|
set -e
|
|
|
|
# Usage:
|
|
# script/test
|
|
# script/test <test_file>
|
|
|
|
if [ ! -d tmp ]
|
|
then mkdir tmp
|
|
fi
|
|
|
|
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
|