Sha256: b64a87c24b18e7d8ef8fc659932173af00617e8661322214c32eaf60284b11d2

Contents?: true

Size: 842 Bytes

Versions: 6

Compression:

Stored size: 842 Bytes

Contents

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

begin
  require 'ci/reporter/rake/rspec'
  require 'cucumber'
  require 'cucumber/rake/task'
  require 'rspec/core/rake_task'

  # ci_reporter_rspec cleans and then writes results to spec/reports
  RSpec::Core::RakeTask.new :spec do |t|
    t.rspec_opts = '--tag ~wip --format junit'
  end

  Cucumber::Rake::Task.new :features

  task :jenkins => ['ci:setup:rspec', :spec] do
    File.write('build_number', ENV['BUILD_NUMBER']) if ENV['BUILD_NUMBER']
    require 'fileutils'
    FileUtils.rm_rf 'features/reports'
    Cucumber::Rake::Task.new do |t|
      t.cucumber_opts = "--tags ~@real-api --format pretty --format junit --out features/reports"
    end.runner.run
  end

  task default: [:spec, :features]
rescue LoadError
  $stderr.puts $!
  $stderr.puts "This error will be ignored"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
conjur-cli-6.2.6 Rakefile
conjur-cli-6.2.5 Rakefile
conjur-cli-6.2.4 Rakefile
conjur-cli-6.2.3 Rakefile
conjur-cli-6.2.2 Rakefile
conjur-cli-6.2.1 Rakefile