Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 27 lines (21 sloc) 0.54 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
require 'rake/testtask'

task :default => [:package]

task :test do
  system("make -C test")
  Rake::Task[:minitest].invoke # Run these tests as well.
  # Eventually all the tests should be minitest-run or initiated.
end

# MiniTest tests
Rake::TestTask.new do |t|
  t.pattern = 'test/fpm/*.rb'
  t.name = 'minitest'
end

task :package => [:test, :package_real] do
end

task :package_real do
  system("gem build fpm.gemspec")
end

task :publish do
  latest_gem = %x{ls -t fpm*.gem}.split("\n").first
  system("gem push #{latest_gem}")
end
Something went wrong with that request. Please try again.