Sha256: c81b30ffda728dd24f62109159daaab282dcd7795aa81c3fb8cca8fd1d70ad4b

Contents?: true

Size: 856 Bytes

Versions: 4

Compression:

Stored size: 856 Bytes

Contents

#!/usr/bin/env rake
require 'bundler/gem_tasks'
require 'rdoc/task'
require 'rubocop/rake_task'
require 'rspec/core/rake_task'

RuboCop::RakeTask.new

namespace :test do
  desc 'Run the Symbiont script.'
  task :script do
    system('ruby ./test/symbiont-script.rb')
  end
end

namespace :spec do
  desc 'Clean all generated reports'
  task :clean do
    system('rm -rf spec/reports')
  end

  RSpec::Core::RakeTask.new(all: :clean) do |config|
    options  = %w(--color)
    options += %w(--format documentation)
    options += %w(--format html --out spec/reports/symbiont-test-report.html)

    config.rspec_opts = options
  end
end

Rake::RDocTask.new do |rdoc|
  rdoc.rdoc_dir = 'doc'
  rdoc.main = 'README.md'
  rdoc.title = "Symbiont #{Symbiont::VERSION}"
  rdoc.rdoc_files.include('README*', 'lib/**/*.rb')
end

task default: ['spec:all', :rubocop]

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
symbiont-1.0.0 Rakefile
symbiont-0.14.0 Rakefile
symbiont-0.13.0 Rakefile
symbiont-0.12.0 Rakefile