Sha256: a878f10ec708c2d982c8a58c1fd66bfe7b65ae55c1c0e15d0ef7d27f2d69c47a

Contents?: true

Size: 739 Bytes

Versions: 1

Compression:

Stored size: 739 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rake'
require 'rspec/core/rake_task'

desc 'Start unit tests'
task test: :spec
task :spec do
  RSpec::Core::RakeTask.new(:spec) do |config|
    config.rspec_opts = '--color'
  end
  Rake::Task['spec'].invoke
end

desc 'Install latest Jenkins war file'
task default: :prepare
task :prepare do
  begin
    require 'bundler/setup'
    require 'jenkins_peace'
    Jenkins::Peace::ConsoleLogger.new().info("Installing Jenkins war file version : 'latest'")
    Jenkins::Peace.install('latest')
    Jenkins::Peace::ConsoleLogger.new().info('Done !')
  rescue
    puts "Failed to install Jenkins war, you'll have to install it yourself with 'jenkins.peace install <version>'"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jenkins-peace-1.0.0 Rakefile