clearsightstudio/ProMotion

View on GitHub
Rakefile

Summary

Maintainability
Test Coverage
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
$:.unshift("~/.rubymotion/rubymotion-templates")
require 'motion/project/template/ios'

begin
  require 'bundler'
  require 'motion/project/template/gem/gem_tasks'
  Bundler.setup
  Bundler.require(:development)
rescue LoadError
end

require 'ProMotion'
require 'motion_print'

Motion::Project::App.setup do |app|
  app.name = 'ProMotion'
  app.device_family = [ :ipad ] # so we can test split screen capability
  app.redgreen_style = :full # test output
  app.frameworks << 'QuartzCore'
end

namespace :spec do
  task :unit do
    App.config.spec_mode = true
    spec_files = App.config.spec_files - Dir.glob('./spec/functional/**/*.rb')
    App.config.instance_variable_set("@spec_files", spec_files)
    Rake::Task["simulator"].invoke
  end
end