Sha256: ee7aae2af39a46d00cdb6a20c0b4a7ee2a54f192b616c1c64f0b5cac26389135

Contents?: true

Size: 933 Bytes

Versions: 13

Compression:

Stored size: 933 Bytes

Contents

require 'bundler/gem_tasks'
require 'rake/testtask'
require 'fileutils'
require 'pathname'
require 'git'

desc 'Default: run unit tests.'
task :default => :test

desc 'Update misc tables'
task :update do
  Dir.glob('tools/update_*.rb').each do |path|
    ruby path
  end
end

namespace :test do
  desc 'Preparation of external modules'
  task :prepare do
    external_repos = [
      'jpmobile-ipaddresses',
      'jpmobile-terminfo',
    ]
    github_prefix = 'git://github.com/jpmobile'
    vendor_path = Pathname.new(Dir.pwd).join('vendor')
    FileUtils.mkdir_p(vendor_path)

    FileUtils.cd(vendor_path) do
      external_repos.each do |repos|
        unless File.directory?("#{repos}/.git")
          Git.clone("#{github_prefix}/#{repos}.git", repos, { :path => vendor_path })
        end
      end
    end
  end
end

task :test => ['test:prepare', 'spec:unit', 'spec:rack', 'test:rails']
load 'lib/tasks/jpmobile_tasks.rake'

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
jpmobile-7.0.1 Rakefile
jpmobile-7.0.0 Rakefile
jpmobile-6.1.2 Rakefile
jpmobile-6.1.1 Rakefile
jpmobile-6.1.0 Rakefile
jpmobile-6.0.0 Rakefile
jpmobile-5.2.5 Rakefile
jpmobile-6.0.0.beta Rakefile
jpmobile-5.2.4 Rakefile
jpmobile-5.2.3 Rakefile
jpmobile-5.2.2 Rakefile
jpmobile-5.2.1 Rakefile
jpmobile-5.2.0 Rakefile