Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Started the splitup of rubyapp into smaller, reusable components (e.g…

…. testtask, packagetask)

Added a PackageTask
Added test task.
Added a contrib test.


git-svn-id: svn+ssh://rubyforge.org/var/svn/rake/trunk@54 5af023f1-ac1a-0410-98d6-829a145c37ef
  • Loading branch information...
commit 1bd831f55ccd6e6b197b5c77ae5a526f5a264329 1 parent 4f05169
jimweirich authored
Showing with 23 additions and 4 deletions.
  1. +23 −4 rake/Rakefile
View
27 rake/Rakefile
@@ -1,13 +1,18 @@
# Rakefile for rake -*- ruby -*-
require 'build/rubyapp'
+require 'rake/testtask'
+require 'rake/packagetask'
+
+task :default => :test
builder = AppBuilder.new('rake')
builder.revision_command "ruby -Ilib ./bin/rake --version"
-builder.package_files << 'install.rb'
-builder.package_files.no_match(/\bCVS\b/, /~$/)
-builder.package_files.glob(
+
+pkg = Rake::PackageTask.new("rake", "0.2.7c")
+pkg.package_files << 'install.rb'
+pkg.package_files.add(
'[A-Z]*',
'bin/**/*',
'lib/**/*.rb',
@@ -15,14 +20,22 @@ builder.package_files.glob(
'doc/**/*',
'build/rubyapp.rb',
'*.blurb')
+pkg.package_files.reject! { |fn| fn =~ /\bCVS\b|~$/ }
+pkg.define
+
builder.rdoc_files << ['README', 'LICENSE', 'TODO', 'CHANGES']
-builder.rdoc_files.glob('lib/**/*.rb', 'doc/**/*.rdoc', 'test/*.rb')
+#builder.rdoc_files.glob('lib/**/*.rb', 'doc/**/*.rdoc', 'test/*.rb')
builder.clobber_files << %w(html pkg testdata)
builder.create_tasks
+t = Rake::TestTask.new
+t.libs << "test"
+t.verbose = true
+t.define
+
umlcoop_info = HostInfo.new(
'umlcoop',
'htdocs/software',
@@ -56,3 +69,9 @@ builder.web_publisher.add SshFilePublisher.new(
directory 'testdata'
task :test => ['testdata']
+ctest = Rake::TestTask.new(:contrib_test)
+ctest.pattern = 'test/contrib/test*.rb'
+ctest.verbose = true
+ctest.define
+
+task :testall => [:test, :contrib_test]
Please sign in to comment.
Something went wrong with that request. Please try again.