Sha256: d0a9f402f983fc05d76e94baee29686d834a06099e70b6dd8447845494e64f45
Contents?: true
Size: 738 Bytes
Versions: 3
Compression:
Stored size: 738 Bytes
Contents
require 'rake' require 'rake/tasklib' module OpenHood module Rake class CITask < ::Rake::TaskLib include Gem if RUBY_VERSION.to_f >= 1.9 def initialize namespace :ci do desc 'Run all features and specs' task :all do ENV['RACK_ENV'] = 'test' error = 0 rake_bin = "#{File.join(Config::CONFIG['bindir'], 'rake')} " ["#{rake_bin} spec", "#{rake_bin} features"].each do |command| if system command error += $?.to_i else error += 1 end end at_exit {exit error} if(error != 0) end end end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
openhood-sinatra_rake_tasks-0.1.0 | lib/openhood/rake/ci.rb |
openhood-sinatra_rake_tasks-0.1.1 | lib/openhood/rake/ci.rb |
sinatra_rake_tasks-0.2.0 | lib/openhood/rake/ci.rb |