specs/repositories.rbspec
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 20 Jan 2020 13:33:54 +0000
changeset 287 0283457aef8a
parent 283 e6e50f9b9987
child 314 834d89a1e75d
permissions -rw-r--r--
Rakefiles: add stc's `genOffsets` and `dbginfo.h` to pre-built stc archive ...since they're needed by makefile.

# This file defines a set of repositories to fetch source code from.
#

begin
  #
  # All packages that are not (yet) forked are taken from
  # eXept's public CVS repository
  #
  repository :'exept:public' do
    type :cvs
    origin    ":pserver:cvs@cvs.smalltalk-x.de:/cvs/stx"
  end

  #
  # Auto-configure jv-branch:public and jv-branch:private
  # repositories based on the URL of rakefiles.
  #
  origin = HG::Repository.new(BUILD_DIR / '..')
  branch = origin.branch()
  origin_forest_url = origin.paths['default'].slice(0.. - 'stx-goodies-builder-rake'.size - 2)
  cloned_from_bitbucket = origin_forest_url =~ /bitbucket.org/
  cloned_from_integration = ((origin_forest_url =~ /nereid/) || (origin_forest_url =~ /192.168.27.250/)) && branch == 'default'

  repository :'jv-branch:public' do
    type :hg
    separator '-'
    canonical "https://bitbucket.org/janvrany"

    if (cloned_from_integration)
      upstream  "https://swing.fit.cvut.cz/hg"
    end

    origin origin_forest_url
  end

rescue Exception
  info "Building from source archive"
end