add test to build the default site

This commit is contained in:
Ben Balter 2016-07-28 10:43:46 -04:00
parent 26f1ea2487
commit ca03a41564
2 changed files with 13 additions and 0 deletions

View File

@ -9,6 +9,7 @@ then
script/fmt
script/test ci
script/cucumber
script/default-site
elif [[ -x "script/$TEST_SUITE" ]]
then
script/$TEST_SUITE

12
script/default-site Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Runs the `jekyll new` command and builds the default site as a sanity check
set -e
mkdir -p ./tmp
rm -Rf ./tmp/default-site
bundle exec jekyll new tmp/default-site
cd tmp/default-site
bundle exec jekyll build --verbose