jekyll/script/test

21 lines
337 B
Bash
Executable File

#! /bin/bash
#
# Usage:
# script/test
# script/test <hi>
git diff --name-only origin $(git log --pretty=format:"%h" -2 | tail -1) | grep -v '^/site' || {
echo "No lib files have changed, skipping Jekyll tests!"
exit 0
}
if [ -z "$1" ]; then
TEST_FILES="test/test_*.rb"
else
TEST_FILES="$@"
fi
set -x
bundle exec rake