Sha256: 101d061150e2837f704fd46f220d4df0ad2031c861bcc5d5ab16fcfaead26dd0

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

require "bundler/gem_tasks"
require "yard"
require "yard/rake/yardoc_task"

task :default => [:specs, :build]

desc "Run specs"
task :specs do
  system "rspec --color --format d --tag ~integration"
end

desc "Run integration tests"
task :integration => :reset do
  system "rspec --color --format d --tag integration"
end

namespace :doc do 
  desc "Generate YARD docs"
  YARD::Rake::YardocTask.new(:generate) do |t|
    t.files   = ['lib/**/*.rb',  '-', 'README.md']   # optional
    # t.options = ["-o ../xcoder-doc"]
  end
end

task :reset => ['test_project:reset']

namespace :test_project do
  
  task :reset do
    puts "Reseting the TestProject Project File"
    system "git checkout -- spec/TestProject"
    puts "Removing any User schemes generated in the project"
    system "rm -rf spec/TestProject/TestProject.xcodeproj/xcuserdata"
    puts "Removing any installed files"
    system "git clean -df spec/TestProject"
  end
  
end


require './lib/xcoder/rake_task'

Xcode::RakeTask.new :xcode do |xcoder|
  xcoder.directory = 'spec'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xcoder-0.1.18 Rakefile