diff options
author | Michael Sofaer <pair+michael@joindiaspora.com> | 2011-06-28 21:54:00 +0400 |
---|---|---|
committer | Michael Sofaer <pair+michael@joindiaspora.com> | 2011-06-28 21:54:00 +0400 |
commit | 7ba80ce7992064956b57df7b4bfe3e53100394a5 (patch) | |
tree | c40faffa593a48c752a27fd36bafabb9afe2fc8f /lib | |
parent | c2565127c79d57ea8bce9691c4e1cae9427558da (diff) |
change the build script that actually runs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cruise/build.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/cruise/build.rb b/lib/cruise/build.rb deleted file mode 100644 index ae9f6b425..000000000 --- a/lib/cruise/build.rb +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'fileutils' -include FileUtils - -def root_dir - @root_dir ||= File.expand_path(File.dirname(__FILE__) + '/../..') -end - -def rake(*tasks) - tasks.each do |task| - return false unless system("rake", task, 'RAILS_ENV=test') - end -end - -build_results = {} - -cd root_dir do - build_results[:bundle] = system 'bundle install' # bundling here, rather than in a task (not in Rails context) - system "cp config/application.yml.example config/application.yml" - build_results[:spec] = rake 'cruise' -end - -failures = build_results.select { |key, value| value == false } - -if failures.empty? - exit(0) -else - exit(-1) -end |