Merge pull request #5154 from jekyll/build-the-site

Merge pull request 5154
This commit is contained in:
jekyllbot 2016-08-01 17:33:54 -07:00 committed by GitHub
commit 73b7bd8172
3 changed files with 21 additions and 1 deletions

View File

@ -15,11 +15,12 @@ matrix:
env: TEST_SUITE=fmt env: TEST_SUITE=fmt
- rvm: jruby-9.0.5.0 - rvm: jruby-9.0.5.0
env: TEST_SUITE=test env: TEST_SUITE=test
- rvm: 2.3.0
env: TEST_SUITE=default-site
env: env:
matrix: matrix:
- TEST_SUITE=test - TEST_SUITE=test
- TEST_SUITE=cucumber - TEST_SUITE=cucumber
branches: branches:
only: only:
- master - master

View File

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

18
script/default-site Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Runs the `jekyll new` command and builds the default site as a sanity check
set -e
echo "$0: setting up tmp directory"
mkdir -p ./tmp
rm -Rf ./tmp/default-site
echo "$0: creating new default site"
bundle exec jekyll new tmp/default-site
pushd tmp/default-site
echo "$0: installing default site dependencies"
bundle install
echo "$0: building the default site"
bundle exec jekyll build --verbose
popd