Sha256: b47b4debd85ed517aad9228340cfbe2a60bdf1df5cdcc555eab3544ff800b71b
Contents?: true
Size: 1.22 KB
Versions: 4
Compression:
Stored size: 1.22 KB
Contents
require "rake/testtask" def spec @spec ||= begin require "rubygems/specification" eval(File.read("integrity.gemspec")) end end desc "Default: run all tests" task :default => :test desc "Launch Integrity real quick" task :launch do ruby "bin/integrity launch" end desc "Run tests" task :test => %w(test:units test:acceptance) namespace :test do desc "Run unit tests" Rake::TestTask.new(:units) do |t| t.test_files = FileList["test/unit/*_test.rb"] end desc "Run acceptance tests" Rake::TestTask.new(:acceptance) do |t| t.test_files = FileList["test/acceptance/*_test.rb"] end end begin require "mg" require "metric_fu" MG.new("integrity.gemspec") rescue LoadError end desc "Special task for running tests on <http://builder.integrityapp.com>" task :ci do Rake::Task["test"].invoke metrics = %w(flay flog:all reek roodi saikuro) metrics.each { |m| Rake::Task["metrics:#{m}"].invoke } rm_rf "/var/www/integrity-metrics" mv "tmp/metric_fu", "/var/www/integrity-metrics" File.open("/var/www/integrity-metrics/index.html", "w") { |f| f.puts "<ul>" metrics.map { |m| m.split(":").first }.each { |m| f.puts %Q(<li><a href="/#{m}">#{m}</a></li>) } f.puts "</ul>" } end
Version data entries
4 entries across 4 versions & 3 rubygems
Version | Path |
---|---|
foca-integrity-0.1.9.3 | Rakefile |
gforces-integrity-0.1.9.3 | Rakefile |
gforces-integrity-0.1.9.4 | Rakefile |
integrity-0.1.9.3 | Rakefile |