Sha256: 4885712dbb37bfa10f476ebef944905cfe7d208c5b4d03c3248b031d0e4d3e5f

Contents?: true

Size: 1.13 KB

Versions: 2

Compression:

Stored size: 1.13 KB

Contents

#!/usr/bin/env rake
require "bundler/gem_tasks"

begin
  require 'rspec/core/rake_task'
  RSpec::Core::RakeTask.new :spec
rescue LoadError
  warn "rspec-core not found, rspec task will be unavailable"
end

begin
  require "yard"
  YARD::Rake::YardocTask.new(:yard)
rescue LoadError
  warn "yard not found, yard task will be unavailable"
end

require 'fileutils'
task(:init_coverage) { FileUtils.rm_rf 'coverage' }
task(:cuke_report_cleanup) { FileUtils.rm_rf 'features/reports' }

begin
  require 'cucumber'
  require 'cucumber/rake/task'

  Cucumber::Rake::Task.new(:cucumber) do |t|
    t.cucumber_opts = "--tags ~@wip --format pretty --format junit --out features/reports"
  end

  begin
    require 'ci/reporter/rake/rspec'
    desc "Run the spec and cucumber suites, compute the test results and coverage statistics, build Yard docs"
    task :jenkins => [:init_coverage, :"ci:setup:rspec", :spec, :cuke_report_cleanup, :cucumber, :yard]
    task default: [ :jenkins ]
  rescue LoadError
    warn "ci_reporter_rspec not found, jenkins task will be unavailable"
  end
rescue LoadError
  warn "cucumber not found, cucumber task will be unavailable"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
conjur-api-5.0.0 Rakefile
conjur-api-5.0.0.rc1 Rakefile