From 800658cc9ebcb59a87414b99aeec2b6313a879e3 Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Tue, 6 Sep 2016 11:56:21 -0400 Subject: [PATCH 1/2] add travis and a smoke test --- .gitignore | 2 ++ .travis.yml | 7 +++++++ script/bootstrap | 5 +++++ script/build | 6 ++++++ script/cibuild | 14 ++++++++++++++ 5 files changed, 34 insertions(+) create mode 100644 .travis.yml create mode 100755 script/bootstrap create mode 100755 script/build create mode 100755 script/cibuild diff --git a/.gitignore b/.gitignore index 0a62fd8fad..5ff83aa561 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ .sass-cache Gemfile.lock example/_site +_site +.sass-cache diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..c2fa3f9c0e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: ruby +cache: bundler +sudo: false +rvm: 2.2 + +install: script/bootstrap +script: script/cibuild diff --git a/script/bootstrap b/script/bootstrap new file mode 100755 index 0000000000..ff2a795e10 --- /dev/null +++ b/script/bootstrap @@ -0,0 +1,5 @@ +#!/bin/sh + +set -e + +bundle install diff --git a/script/build b/script/build new file mode 100755 index 0000000000..645006f11a --- /dev/null +++ b/script/build @@ -0,0 +1,6 @@ +#!/bin/sh + +set -e + +echo "Buidling the example site..." +bundle exec jekyll build --source example diff --git a/script/cibuild b/script/cibuild new file mode 100755 index 0000000000..bfc34de159 --- /dev/null +++ b/script/cibuild @@ -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 From c14d64e4c6d4dab857f985ac864e59615035ff63 Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Tue, 6 Sep 2016 12:03:09 -0400 Subject: [PATCH 2/2] install bundler as part of the bootstrap process --- script/bootstrap | 1 + 1 file changed, 1 insertion(+) diff --git a/script/bootstrap b/script/bootstrap index ff2a795e10..492e5535f1 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -2,4 +2,5 @@ set -e +gem install bundler bundle install