Login  Register

Re: 2 questions around gitlab, gitfiletree, BaselineOf

Posted by Sabine M. on Jul 11, 2017; 10:43am
URL: https://forum.world.st/2-questions-around-gitlab-gitfiletree-BaselineOf-tp4953877p4954305.html

After several questions and trials I ended with a script like this:

cd /Applications/Pharo5.0-7.app/Contents/Resources
rm Pharo.image
rm Pharo.changes
curl get.pharo.org/50 | bash
rm -rf spfClonedGitlabRepository
git clone http://192.168.1.61:30000/SPF/Spesenfuchs.git --branch 1.0 spfClonedGitlabRepository
Pharo Pharo.image --no-default-preferences eval --save "(CatalogProvider projectNamed: 'GitFileTree') installVersion: #stable. Metacello new baseline: 'RKA24'; repository: 'filetree://spfClonedGitlabRepository';load."

It creates a local clone (of a certain version) of my gitlab repository (deleting old stuff before) and starts with a new image, loading the given branch.

With this, I can always start with a new image, loading exactly the version I want from gitlab.

For pushing into gitlab I use the MCFileTreeGitRepository browser and push.

Big thank you for all who helped me, here and in discord.

2017-07-08 18:31 GMT+02:00 Pierce Ng-3 [via Smalltalk] <[hidden email]>:
On Fri, Jul 07, 2017 at 06:48:50AM -0700, Sabine Manaa wrote:

> 1) For loading my own code, I currently have a bad solution
> I would like to load it within my baseline like this below but I dont know
> what to write in the fileTreeRepository method...
>
> baseline: spec
> <baseline>
> spec
> for: #common
> do: [ spec blessing: #baseline.
> spec repository: ##self fileTreeRepository##.
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Here I use 'http://127.0.0.1:20080/', where the http server serves my filetree
repo directory. The easiest way (for me on Linux/Mac) to get the http server
running is 'python3 -m http.server 20080'.

This method works for a directory full of .mcz files too.

Pierce




If you reply to this email, your message will be added to the discussion below:
http://forum.world.st/2-questions-around-gitlab-gitfiletree-BaselineOf-tp4953877p4954007.html
To start a new topic under Pharo Smalltalk Users, email [hidden email]
To unsubscribe from Pharo Smalltalk Users, click here.
NAML