specs/stx-jv.rbspec
changeset 67 75b6eb7b781c
parent 64 02c00e68d367
child 70 8e73f248c6d4
equal deleted inserted replaced
66:8d2d5dfe94d0 67:75b6eb7b781c
   202   #package "stx:libjava/examples" :link => false
   202   #package "stx:libjava/examples" :link => false
   203 
   203 
   204   # Smalltalk/X IDE
   204   # Smalltalk/X IDE
   205   application 'stx:projects/smalltalk', :repository => :'bitbucket:janvrany', :branch => 'jv'
   205   application 'stx:projects/smalltalk', :repository => :'bitbucket:janvrany', :branch => 'jv'
   206 
   206 
   207   if (ENV['USER'] == 'builder') || ( ENV['USER'] == 'vranyj1')  || (ENV['USERNAME'] == 'builder') || ( ENV['USERNAME'] == 'vranyj1') then
       
   208     repository :'mirror:swing' do
       
   209       type :hg
       
   210       url "https://swing.fit.cvut.cz/hg"    
       
   211       separator '-'
       
   212     end
       
   213 
       
   214     stx_libjava_checkouter =
       
   215          Proc.new do | pkg, build_dir |
       
   216              repo = :'mirror:swing'
       
   217              puts "Checking out #{pkg.name} from #{repo} (cache / staging repo)..."
       
   218              checkout repo, pkg.directory, :branch => pkg.branch, :package => pkg, :separator => '-'
       
   219              puts "Checking out #{pkg.name} from #{repo} (cache)...done"
       
   220 
       
   221              File.open(build_dir / 'stx' / 'libjava' / '.hg' / 'hgrc' , 'w') do | f |
       
   222                  f.puts "[paths]"
       
   223                  f.puts "default = https://bitbucket.org/janvrany/stx-libjava"
       
   224              end
       
   225 
       
   226              repo = pkg.repository
       
   227              puts "Checking out #{pkg.name} from #{repo}..."
       
   228              update repo, pkg.directory, :branch => pkg.branch, :package => pkg, :separator => pkg._separator
       
   229              puts "Checking out #{pkg.name} from #{repo}...done"
       
   230          end
       
   231 
       
   232      stx_libjava_updater =
       
   233          Proc.new do | pkg, build_dir |
       
   234              repo = :'mirror:swing'
       
   235              puts "Updating #{pkg.name} from #{repo} (cache / staging repo)..."
       
   236              update repo, pkg.directory, :branch => pkg.branch, :package => pkg, :separator => '-'
       
   237              puts "Checking out #{pkg.name} from #{repo} (cache)...done"
       
   238 
       
   239              repo = pkg.repository
       
   240              puts "Checking out #{pkg.name} from #{repo}..."
       
   241              update repo, pkg.directory, :branch => pkg.branch, :package => pkg, :separator => pkg._separator
       
   242              puts "Checking out #{pkg.name} from #{repo}...done"
       
   243          end
       
   244 
       
   245 
       
   246      package "stx:libjava", :checkout => stx_libjava_checkouter, :update => stx_libjava_updater
       
   247   end
       
   248 
       
   249   package 'stx:libscm', :repository => :'bitbucket:janvrany'
   207   package 'stx:libscm', :repository => :'bitbucket:janvrany'
   250   package 'stx:libscm/common', :repository => :'bitbucket:janvrany'
   208   package 'stx:libscm/common', :repository => :'bitbucket:janvrany'
   251   package 'stx:libscm/mercurial', :repository => :'bitbucket:janvrany'
   209   package 'stx:libscm/mercurial', :repository => :'bitbucket:janvrany'
   252   package 'stx:libscm/mercurial/monticello', :repository => :'bitbucket:janvrany'
   210   package 'stx:libscm/mercurial/monticello', :repository => :'bitbucket:janvrany'
   253   package 'stx:goodies/ring', :repository => :'bitbucket:janvrany', :link => false
   211   package 'stx:goodies/ring', :repository => :'bitbucket:janvrany', :link => false
   256   package "stx:goodies/xmlsuite", :repository => :'bitbucket:janvrany'  
   214   package "stx:goodies/xmlsuite", :repository => :'bitbucket:janvrany'  
   257   package "stx:goodies/loggia", :repository => :'exept:public'
   215   package "stx:goodies/loggia", :repository => :'exept:public'
   258   package 'stx:goodies/smaCC',:repository => :'bitbucket:janvrany'
   216   package 'stx:goodies/smaCC',:repository => :'bitbucket:janvrany'
   259   package 'stx:goodies/regression',:repository => :'bitbucket:janvrany', :branch => 'jv', :link => false
   217   package 'stx:goodies/regression',:repository => :'bitbucket:janvrany', :branch => 'jv', :link => false
   260   package "stx:goodies/builder", :repository => :'bitbucket:janvrany',:branch => 'jv', :link => false
   218   package "stx:goodies/builder", :repository => :'bitbucket:janvrany',:branch => 'jv', :link => false
       
   219   package "stx:goodies/builder/reports"
   261 
   220 
   262   # Define a "default" test suite, i.e., a set of tests that are run when
   221   # Define a "default" test suite, i.e., a set of tests that are run when
   263   # user does `rake test`. 
   222   # user does `rake test`. 
   264   # The test suite is defined conditionally only when not running under SWING Jenkins. 
   223   # The test suite is defined conditionally only when not running under SWING Jenkins. 
   265   # Though this is hacky, I'd like a Jenkins job to build exactly the same 
   224   # Though this is hacky, I'd like a Jenkins job to build exactly the same