Permalink
Browse files

Cruisecontrol.

  • Loading branch information...
Winston Teo
Winston Teo committed Mar 21, 2012
1 parent daf15ed commit 4ccc3b12417e83b7ac3a2fa16552627361917066
Showing with 24 additions and 0 deletions.
  1. +6 −0 Rakefile
  2. +15 −0 ci_build.sh
  3. +3 −0 cruise_config.rb
View
@@ -19,3 +19,9 @@ rescue LoadError
abort "Jasmine is not available. In order to run jasmine, you must: (sudo) gem install jasmine"
end
end
+
+# CI Tasks
+desc "Run CI build"
+task :ci_build do
+ Rake::Task["spec"].invoke && Rake::Task["jasmine:ci"].invoke
+end
View
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+source $HOME/.rvm/scripts/rvm && source .rvmrc
+
+# install bundler if necessary
+gem list --local bundler | grep bundler || gem install bundler || exit 1
+
+# debugging info
+echo USER=$USER && ruby --version && which ruby && which bundle
+
+# conditionally install project gems from Gemfile
+bundle check || bundle install || exit 1
+
+bundle exec rake db:reset
+bundle exec rake ci_build
View
@@ -0,0 +1,3 @@
+Project.configure do |project|
+ project.build_command = './ci_build.sh'
+end

0 comments on commit 4ccc3b1

Please sign in to comment.