Sha256: 8cd52afd74dac9edc8055d80dcb2e2bedda2a95ca2e3d1f08b05009fa6f01d7c
Contents?: true
Size: 938 Bytes
Versions: 8
Compression:
Stored size: 938 Bytes
Contents
#!/usr/bin/env rake $:.push File.expand_path("../lib", __FILE__) require "rspec/core/rake_task" require "backup_jenkins/version" require "bundler/gem_tasks" RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = "spec/**/*_spec.rb" end namespace :spec do task :set_coverage do ENV["COVERAGE"] = "true" end desc "Run with coverage" task :rcov => :set_coverage do Rake::Task[:spec].invoke end desc "Run for ci (with reports)" RSpec::Core::RakeTask.new(:ci) do |spec| spec.pattern = "spec/**/*_spec.rb" spec.rspec_opts = ["--backtrace --format CI::Reporter::RSpec"] end desc "Run with coverage and reports" task :rcov_and_ci => [:set_coverage, :ci] end desc "Clean backup and swap files, and artifacts" task :clean do require "fileutils" Dir["{pkg/*,**/*~,**/.*.sw?,coverage/**,spec/reports/**}"].each do |file| rm_rf file end end desc "Run rspec by default" task :default => :spec
Version data entries
8 entries across 8 versions & 1 rubygems