From 11f926438ee8e09aa162fa5a580eb7e8942dcab2 Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Mon, 15 Jul 2013 16:25:44 -0400 Subject: [PATCH] use travis for ci to verify builds work before merging --- .travis.yml | 8 ++++++++ script/bootstrap | 1 + script/cibuild | 9 +++++++++ 3 files changed, 18 insertions(+) create mode 100644 .travis.yml create mode 100755 script/cibuild diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f9d70f9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +#bootstrap and build +before_script: "./script/bootstrap" +script: "./script/cibuild" + +#environment +language: ruby +rvm: + - 1.9.3 \ No newline at end of file diff --git a/script/bootstrap b/script/bootstrap index a74f422..8a6128e 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -3,6 +3,7 @@ set -e echo "bundling installin'" +gem install bundler bundle install echo "npm installin'" diff --git a/script/cibuild b/script/cibuild new file mode 100755 index 0000000..1fb1d04 --- /dev/null +++ b/script/cibuild @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +echo "compiling javascript..." +./node_modules/.bin/coffee -c javascripts/app.coffee + +echo "building the site..." +bundle exec jekyll build --trace \ No newline at end of file