Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Travis and a basic smoke test #33

Merged
merged 2 commits into from
Sep 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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