Sha256: a27c8871205dc5fbef1512b7f75cf5144523446e5957f4ba118869861815cbad

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

require 'rubygems'
require 'simplecov'
require 'rspec'
require 'codeclimate-test-reporter'
require 'pullreview/coverage_reporter'

## Configure SimpleCov
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
  SimpleCov::Formatter::HTMLFormatter,
  CodeClimate::TestReporter::Formatter,
  PullReview::Coverage::Formatter
])

## Start Simplecov
SimpleCov.start do
  add_filter '/spec/'
end

## Configure RSpec
RSpec.configure do |config|
  config.color = true
  config.fail_fast = false
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end
end

ENV['RACK_ENV'] = 'test'
require 'jenkins_peace'

JENKINS_WAR_URL      = 'http://mirrors.jenkins-ci.org/war/'
BASE_PATH            = File.join(ENV['HOME'], '.jenkins')
WAR_FILES_CACHE      = File.join(ENV['HOME'], '.jenkins', 'war-files')
WAR_UNPACKED_CACHE   = File.join(ENV['HOME'], '.jenkins', 'wars')
SERVER_PATH          = File.join(ENV['HOME'], '.jenkins', 'server')
SERVER_COMMAND_LINE  = [
  'java',
  "-Djava.io.tmpdir=#{File.join(SERVER_PATH, 'javatmp')}",
  '-jar',
  File.join(WAR_FILES_CACHE, '1.630', 'jenkins.war'),
  '--httpPort=3001',
  '--controlPort=3002'
]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jenkins-peace-1.0.0 spec/spec_helper.rb