Skip to content

Commit

Permalink
Merge pull request jekyll#33 from jekyll/test
Browse files Browse the repository at this point in the history
Add Travis and a basic smoke test
  • Loading branch information
benbalter authored Sep 7, 2016
2 parents 3c16605 + c14d64e commit 536dd32
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
.sass-cache
Gemfile.lock
example/_site
_site
.sass-cache
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: ruby
cache: bundler
sudo: false
rvm: 2.2

install: script/bootstrap
script: script/cibuild
6 changes: 6 additions & 0 deletions script/bootstrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

set -e

gem install bundler
bundle install
6 changes: 6 additions & 0 deletions script/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

set -e

echo "Buidling the example site..."
bundle exec jekyll build --source example
14 changes: 14 additions & 0 deletions script/cibuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

set -e

script/build

if test -e "./_site/index.html";then
echo "It builds!"
rm -Rf _site
exit 0
else
echo "Huh. That's odd. The example site doesn't seem to build."
exit 1
fi

0 comments on commit 536dd32

Please sign in to comment.