Baselines: Using community hosted Gitea repositories

This commit is contained in:
Offray Vladimir Luna Cárdenas 2020-07-18 19:52:03 -05:00
parent a49fd2e4c1
commit 9d895cf978
1 changed files with 18 additions and 12 deletions

View File

@ -13,17 +13,15 @@ BaselineOfGrafoscopio >> baseline: spec [
do: [
"Dependencies"
self fossil: spec.
self grafoscopioUtils: spec.
spec
package: 'Spec-Glamour'
with: [ spec repository: 'http://smalltalkhub.com/mc/jfabry/Playgroudn/main/' ].
"Packages"
self grafoscopioUtils: spec.
spec
package: 'Grafoscopio' with: [ spec requires: #('Grafoscopio-Utils' 'Spec-Glamour' ) ]
]
]
{ #category : #'as yet unclassified' }
@ -32,16 +30,24 @@ BaselineOfGrafoscopio >> grafoscopioUtils: spec [
"While more Git independient providers are implemented in Monticello, I will use Iceberg
to download the repository and load it from a local directory"
| location |
| location localRepo |
"Dependencies"
"Local and remote repo definition"
location := FileLocator localDirectory / 'iceberg' / 'Offray' / 'GrafoscopioUtils'.
(IceRepositoryCreator new
location: location;
remote: (IceGitRemote url: 'https://code.tupale.co/Offray/GrafoscopioUtils.git');
createRepository)
register.
location exists ifFalse: [
(IceRepositoryCreator new
location: location;
remote: (IceGitRemote url: 'https://code.tupale.co/Offray/GrafoscopioUtils.git');
createRepository)
register
].
"Package loading"
localRepo := 'gitlocal://', location fullName.
Metacello new
repository: 'gitlocal://', location fullName;
repository: localRepo;
baseline: 'Grafoscopio-Utils'
load.
spec project: 'Grafoscopio-Utils' with: [ spec requires: #('Fossil') ].
spec baseline: 'Grafoscopio-Utils' with: [ spec repository: localRepo ]
]