Sha256: fcf014b9f8f57483b624ccbc348da09f615073907dc1c5c968a7139011f5c1c0
Contents?: true
Size: 1.3 KB
Versions: 4
Compression:
Stored size: 1.3 KB
Contents
require 'bundler/gem_tasks' task :default => :spec Rake::Task[:release].enhance [:spec] # Bootstrap #-----------------------------------------------------------------------------# desc 'Initializes your working copy to run the specs' task :bootstrap do sh "bundle install" end # Spec #-----------------------------------------------------------------------------# desc 'Run all specs' task :spec => 'spec:all' namespace :spec do def specs(dir) FileList["spec/#{dir}/*_spec.rb"].shuffle.join(' ') end desc 'Automatically run specs for updated files' task :kick do exec 'bundle exec kicker -c' end task :all do title 'Running Unit Tests' sh "bundle exec bacon #{specs('**')}" # title 'Checking code style...' # Rake::Task['rubocop'].invoke end end # Rubocop #-----------------------------------------------------------------------------# desc 'Checks code style' task :rubocop do require 'rubocop' cli = Rubocop::CLI.new result = cli.run(FileList['lib/**/*.rb'].exclude('lib/cocoapods-core/vendor/**/*').to_a) abort('RuboCop failed!') unless result == 0 end #-----------------------------------------------------------------------------# def title(title) cyan_title = "\033[0;36m#{title}\033[0m" puts puts '-' * 80 puts cyan_title puts '-' * 80 puts end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
act-0.0.5 | Rakefile |
act-0.0.4 | Rakefile |
act-0.0.3 | Rakefile |
act-0.0.2 | Rakefile |