Skip to content
Newer
Older
100644 28 lines (21 sloc) 540 Bytes
9f5cf62 @ohookins Add beginnings of MiniTest::Spec support, and some basic template tests.
ohookins authored Jan 2, 2012
1 require 'rake/testtask'
2
63494e9 @jordansissel - Add gem packaging
authored Jan 3, 2011
3 task :default => [:package]
4
5 task :test do
937f598 @jordansissel - bump version
authored Sep 5, 2011
6 system("make -C test")
9f5cf62 @ohookins Add beginnings of MiniTest::Spec support, and some basic template tests.
ohookins authored Jan 2, 2012
7 Rake::Task[:minitest].invoke # Run these tests as well.
8 # Eventually all the tests should be minitest-run or initiated.
9 end
10
11 # MiniTest tests
12 Rake::TestTask.new do |t|
13 t.pattern = 'test/fpm/*.rb'
14 t.name = 'minitest'
63494e9 @jordansissel - Add gem packaging
authored Jan 4, 2011
15 end
16
17 task :package => [:test, :package_real] do
18 end
19
20 task :package_real do
21 system("gem build fpm.gemspec")
22 end
23
24 task :publish do
25 latest_gem = %x{ls -t fpm*.gem}.split("\n").first
26 system("gem push #{latest_gem}")
27 end
Something went wrong with that request. Please try again.