I have another approach (possibly similar) - as gitlab has already checked out the code for you you simply need to point to it?- rm -rf build. # gitlab can cache the build directory
- mkdir build
- cp scripts/* build
- cd build
- curl get.pharo.org/64/ | bash
- ./pharo Pharo.image --no-default-preferences --save --quit st loadLocal.stWhere loadLocal.st is in a /scripts directory checked into gitlab, and /src is where my normal Pharo Iceberg packages are checked in. loadLocal.st is simply:"CmdLine script to load project"
Metacello new
repository: '<a href="filetree://../src" class="">filetree://../src';
baseline: 'Lambda';
load.TimOn 12 Jul 2017, at 06:49, Sabine Manaa <[hidden email]> wrote:Hi Thierry,this would be nice and exactly what I was looking for.I ask myself if iceberg would be able to solve this/will it be able to solve it in a later version.RegardsSabine2017-07-11 23:13 GMT+02:00 Thierry Goubier [via Smalltalk] <<a href="x-msg://253/user/SendEmail.jtp?type=node& :node=4954475&i=0" target="_top" rel="nofollow" link="external" class="">[hidden email]> Hi Sabine,
I have a slightly different script, a Makefile, which uses another
trick: put everything into a pharo/ subdirectory. Like that, just rm -rf
pharo/ erases everything before rebuilding.
I think I would implement the support you need for you to simply be able
to write:
Metacello new baseline: \'RKA24\'\; repository:
\'gitfiletree://192.168.1.61:30000/SPF/Spesenfuchs.gitspf:1. '\;load0?protocol=http\
so that the clone + Metacello over filetree isn't necessary.
(at the moment, I'm just pretty sure GitFileTree doesn't handle http and
the port number, but that wouldn't be hard to add)
Regards,
Thierry
Le 11/07/2017 à 12:43, Sabine Manaa a écrit :
> After several questions and trials I ended with a script like this:
>
> cd /Applications/Pharo5.0-7.app/Contents/Resources > curl get.pharo.org/50 <http://get.pharo.org/50> | bash
> rm Pharo.image
> rm Pharo.changes
> rm -rf spfClonedGitlabRepository>> 2017-07-08 18:31 GMT+02:00 Pierce Ng-3 [via Smalltalk] <[hidden email]
> git clone http://192.168.1.61:30000/SPF/Spesenfuchs.git
> <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.
>
> </user/SendEmail.jtp?type=node&node=4954305&i=0>>: > ------------------------------
> 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> To start a new topic under Pharo Smalltalk Users, email [hidden
> discussion below:
> http://forum.world.st/2-questions-around-gitlab-gitfiletree- BaselineOf-tp4953877p4954007. html
> <http://forum.world.st/2-questions-around-gitlab-gitfiletree >-BaselineOf-tp4953877p4954007. html
>
> email] </user/SendEmail.jtp?type=node&node=4954305&i=1>
> To unsubscribe from Pharo Smalltalk Users, click here.
> NAML
> <http://forum.world.st/template/NamlServlet.jtp?macro=macro_ >viewer&id=instant_html% 21nabble%3Aemail.naml&base= nabble.naml.namespaces.BasicNa mespace-nabble.view.web. template.NabbleNamespace-nabbl e.view.web.template.NodeNamesp ace&breadcrumbs=notify_ subscribers%21nabble%3Aemail. naml-instant_emails%21nabble% 3Aemail.naml-send_instant_ email%21nabble%3Aemail.naml
>
>
>
>
> ------------------------------------------------------------ ------------
> View this message in context: Re: 2 questions around gitlab,
> gitfiletree, BaselineOf
> <http://forum.world.st/2-questions-around-gitlab-gitfiletree >-BaselineOf-tp4953877p4954305. html
> Sent from the Pharo Smalltalk Users mailing list archive
> <http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html > at Nabble.com.
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-tp4953877p4954413. html To start a new topic under Pharo Smalltalk Users, email <a href="x-msg://253/user/SendEmail.jtp?type=node& node=4954475&i=1" target="_top" rel="nofollow" link="external" class="">[hidden email]
To unsubscribe from Pharo Smalltalk Users, click here.
NAML
Free forum by Nabble | Edit this page |