Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cruisecontrol.

  • Loading branch information...
commit 4ccc3b12417e83b7ac3a2fa16552627361917066 1 parent daf15ed
Winston Teo authored
Showing with 24 additions and 0 deletions.
  1. +6 −0 Rakefile
  2. +15 −0 ci_build.sh
  3. +3 −0  cruise_config.rb
View
6 Rakefile
@@ -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
15 ci_build.sh
@@ -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
3  cruise_config.rb
@@ -0,0 +1,3 @@
+Project.configure do |project|
+ project.build_command = './ci_build.sh'
+end
Please sign in to comment.
Something went wrong with that request. Please try again.