Skip to content

Commit

Permalink
add travis and a smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed Sep 6, 2016
1 parent 3c16605 commit 800658c
Show file tree
Hide file tree
Showing 5 changed files with 34 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
5 changes: 5 additions & 0 deletions script/bootstrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

set -e

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 800658c

Please sign in to comment.