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