Sha256: 077b6c88e6cb9ee576ac28482404df77a5c28f4836954ac97c1887c845ebd5c5

Contents?: true

Size: 935 Bytes

Versions: 6

Compression:

Stored size: 935 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 = 'https://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

6 entries across 6 versions & 1 rubygems

Version Path
jpmobile-8.0.0 Rakefile
jpmobile-7.2.0 Rakefile
jpmobile-7.1.0 Rakefile
jpmobile-7.0.4 Rakefile
jpmobile-7.0.3 Rakefile
jpmobile-7.0.2 Rakefile