25. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 9/27/2017 9:44:49 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

25.1 Files compared

# Location File Last Modified
1 adk\adk\product\tests\integration-tests Rakefile Tue Dec 15 14:06:56 2015 UTC
2 adk\adk\product\tests\integration-tests Rakefile Tue Sep 26 13:12:45 2017 UTC

25.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 162
Changed 1 2
Inserted 0 0
Removed 0 0

25.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

25.4 Active regular expressions

No regular expressions were active.

25.5 Comparison detail

  1   # Encoding : utf-8
  2   require 'r ubygems'
  3   require 'r spec/core/ rake_task'
  4   require 'r ubocop/rak e_task'
  5   require 'j son'
  6   require_re lative 'li b/environm ent.rb'
  7  
  8   # Check en vironment  sanity and  fail fast  if not co rrect
  9   fail 'WORK SPACE envi ronment va riable not  set. Did  you "sourc e infrastr ucture/set .env.sh"?'  unless EN V.keys.inc lude?('WOR KSPACE')
  10   fail 'GEM_ HOME envir onment var iable not  set. Did y ou "source  infrastru cture/set. env.sh"?'  unless ENV .keys.incl ude?('GEM_ HOME')
  11  
  12   task defau lt: [:test ]
  13  
  14   task test:  [
  15     :codequa lity,
  16     :environ ment_setup ,
  17     :rspec
  18   ]
  19  
  20   task codeq uality: [
  21     :info,
  22     :rubocop
  23   ]
  24  
  25   TEST_PATTE RN = 'spec /**/*_spec .rb'
  26  
  27   desc 'Entr y task for  passing a rguments'
  28   task :test , [:enviro nment] =>  [:environm ent_setup]
  29  
  30   desc 'Setu p environm ent endpoi nts'
  31   task :envi ronment_se tup, :envi ronment do  |task, ar gs|
  32     # defaul t to virtu albox
  33     @environ ment = arg s[:environ ment] || ' virtualbox '
  34  
  35     # saves  environmen t JSON has h to envir onment var iable
  36     ENV['INT TEST_SERVI CES'] = En vironment. get_servic es(@enviro nment).to_ json
  37   end
  38  
  39   RSpec::Cor e::RakeTas k.new(:rsp ec) do |ta sk, args|
  40     test_pat tern = TES T_PATTERN
  41  
  42     # use ar guments to  run speci fic spec
  43     unless a rgs.test.n il?
  44       test_p attern = " spec/**/#{ args.test} _spec.rb"
  45       fail ' Test not f ound!' if  Dir.glob(t est_patter n).size <  1
  46     end
  47  
  48     # set fo rmatting f or ci test  runs
  49     unless @ environmen t == 'virt ualbox'
  50       task.r spec_opts  = ['-r rsp ec-extra-f ormatters  -f JUnitFo rmatter  - o TEST-rsp ec_results .xml']
  51     end
  52     task.pat tern = tes t_pattern
  53   end
  54  
  55   task :info  do
  56     puts '== ========== ========== ========== ========== ========== ========== ========== =='
  57     puts '#      Runnin g codequal ity checks .                                            #'
  58       puts '#       For detail s, see htt ps://wiki. vistacore. us/display / DNS  RE/Ruby       #'
  59     puts '== ========== ========== ========== ========== ========== ========== ========== =='
  60   end
  61  
  62   desc 'Rubo cop code q uality che cks config ured in .r ubocop.yml  file'
  63   Rubocop::R akeTask.ne w(:rubocop ) do |rubo cop|
  64     # Specif y config f ile in non -standard  location.
  65     #rubocop .options =  ['-c.rubo cop.yml']
  66  
  67     # Specif y Ruby fil e location s
  68     #rubocop .patterns  = ['**/*.r b', 'Rakef ile']
  69  
  70     # Show e macs style  output, a nd offense  counts
  71     # See ht tps://gith ub.com/bba tsov/ruboc op#formatt ers for ot her output  options
  72     #rubocop .formatter s = ['emac s', 'o']
  73  
  74     # Abort  rake on fa ilure
  75     #rubocop .fail_on_e rror = fal se
  76   end
  77  
  78   desc 'Prin ts the cur rent envir onment con figuration '
  79   task :serv ices, :env ironment d o |task, a rgs|
  80     env = ar gs[:enviro nment] ||  'virtualbo x'
  81     puts JSO N.pretty_g enerate(En vironment. get_servic es(env))
  82   end