Sha256: 97f24800c42a53ae7bfa6d6ac8176abb93aa478da0a2c050a76173b429d65773

Contents?: true

Size: 1.27 KB

Versions: 5

Compression:

Stored size: 1.27 KB

Contents

#!/usr/bin/env rake

require 'fedux_org_stdlib/rake_tasks'

require 'proxy_tester/version'

def software
  'proxy_tester'
end

def version
  ProxyTester::VERSION
end

def root_directory
  ::File.expand_path('../', __FILE__)
end

def tar_file
  ::File.join(pkg_directory, "#{software}-#{version}.tar.gz")
end

def tmp_directory
  ::File.join(root_directory, 'tmp', "#{software}-#{version}")
end

def gem_file
  ::File.join(root_directory, 'pkg', "#{software}-#{version}.gem")
end

def pkg_directory
  ::File.join(root_directory, 'pkg')
end

def gem_directory
  ::File.join(root_directory, 'vendor', 'cache')
end

task :default => 'gem:build'

file gem_file => 'gem:build'

file tmp_directory do
  FileUtils.mkdir_p tmp_directory
end

namespace :gem do
  desc 'build tar file'
  task :package => [gem_file, tmp_directory] do
    FileUtils.mv ::File.join(pkg_directory, "#{software}-#{version}.gem"), tmp_directory

    Dir.chdir('tmp') do
      sh "tar -czf #{tar_file} #{::File.basename tmp_directory}"
    end
  end
end

namespace :license do
  desc 'build license list'
  task :list do
    sh 'license_finder'
  end
end

require 'coveralls/rake/task'
Coveralls::RakeTask.new

namespace :test do
  desc 'Test with coveralls'
  task :coveralls => ['test:rspec', 'test:cucumber', 'coveralls:push']
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
proxy_tester-0.1.8 Rakefile
proxy_tester-0.1.6 Rakefile
proxy_tester-0.1.5 Rakefile
proxy_tester-0.1.4 Rakefile
proxy_tester-0.1.3 Rakefile