Merge pull request #5154 from jekyll/build-the-site
Merge pull request 5154
This commit is contained in:
commit
73b7bd8172
|
@ -15,11 +15,12 @@ matrix:
|
|||
env: TEST_SUITE=fmt
|
||||
- rvm: jruby-9.0.5.0
|
||||
env: TEST_SUITE=test
|
||||
- rvm: 2.3.0
|
||||
env: TEST_SUITE=default-site
|
||||
env:
|
||||
matrix:
|
||||
- TEST_SUITE=test
|
||||
- TEST_SUITE=cucumber
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
|
|
|
@ -9,6 +9,7 @@ then
|
|||
script/fmt
|
||||
script/test ci
|
||||
script/cucumber
|
||||
script/default-site
|
||||
elif [[ -x "script/$TEST_SUITE" ]]
|
||||
then
|
||||
script/$TEST_SUITE
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue