Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Rakefile for ZenTest.

unit_diff and zentest need to be moved into bin for package target to work.

[git-p4: depot-paths = "//src/ZenTest/dev/": change = 2316]
  • Loading branch information...
commit 86a854ff2de584c0d59a1da6f4ed886d91ff8ffc 1 parent 0571ae6
Eric Hodel drbrain authored

Showing 1 changed file with 58 additions and 0 deletions. Show diff stats Hide diff stats

  1. +58 0 Rakefile
58 Rakefile
... ... @@ -0,0 +1,58 @@
  1 +require 'rake'
  2 +require 'rake/testtask'
  3 +require 'rake/rdoctask'
  4 +require 'rake/gempackagetask'
  5 +
  6 +require 'ZenTest'
  7 +
  8 +$VERBOSE = nil
  9 +
  10 +spec = Gem::Specification.new do |s|
  11 + s.name = 'ZenTest'
  12 + s.version = ZenTest::VERSION
  13 + s.summary = ''
  14 + s.authors = ['Ryan Davis', 'Eric Hodel']
  15 + s.email = 'ryand-ruby@zenspider.com'
  16 +
  17 + s.files = File.read('Manifest.txt').split($/)
  18 + s.require_path = 'lib'
  19 + s.executables = %w[zentest unit_diff autotest]
  20 +end
  21 +
  22 +desc 'Run tests'
  23 +task :default => :test
  24 +
  25 +desc 'Run tests'
  26 +task :test => [ :test_new, :test_old ]
  27 +
  28 +desc 'The new tests' # TODO make me just test
  29 +Rake::TestTask.new :test_new do |t|
  30 + t.libs << 'test'
  31 + t.verbose = true
  32 +end
  33 +
  34 +desc 'The old tests' # TODO remove me
  35 +task :test_old do
  36 + sh "ruby -I. ./TestZenTest.rb #{ENV['TEST']}"
  37 +end
  38 +
  39 +desc 'Update Manifest.txt'
  40 +task :update_manifest do
  41 + sh "p4 open Manifest.txt; find . -type f | sed -e 's%./%%' | egrep -v 'swp|~' | egrep -v '^(doc|pkg)/' | sort > Manifest.txt"
  42 +end
  43 +
  44 +desc 'Generate RDoc'
  45 +Rake::RDocTask.new :rdoc do |rd|
  46 + rd.rdoc_dir = 'doc'
  47 + rd.rdoc_files.add 'lib', 'README.txt', 'History.txt',
  48 + 'LinuxJournalArticle.txt'
  49 + rd.main = 'README.txt'
  50 + rd.options << '-d' if `which dot` =~ /\/dot/
  51 +end
  52 +
  53 +desc 'Build Gem'
  54 +Rake::GemPackageTask.new spec do end # WTF? A block is required?
  55 +
  56 +desc 'Clean up'
  57 +task :clean => [ :clobber_rdoc, :clobber_package ]
  58 +

0 comments on commit 86a854f

Please sign in to comment.
Something went wrong with that request. Please try again.