[fpc-pascal] FPC buildbot

Darius Blaszyk dhkblaszyk at gmail.com
Wed Aug 19 09:36:11 CEST 2020


Hi Travis & Joost,

Thanks for all your suggestions! I created a simple buildbot for FPC
projects and used sfpt as the tool to upload to an FTP server. It is
surprisingly stable. The buildbot is an instantFPC script that can be run
in an endless loop to regularly check for new commits or can be triggered
from a cron job. On finding a new commit, it pulls all changes, builds the
project (lazbuild), creates a binary archive and uploads it to FTP. Build,
pack and upload are bash scripts now, but I will refine the tool on
accepting a configuration file to make it more versatile and uniform across
platforms. I'm happy to finally have a buildbot tool with "zero"
configuration that provides me daily snapshots over different platforms.

Rgds, Darius


On Tue, Aug 4, 2020 at 1:58 PM Joost van der Sluis <joost at cnoc.nl> wrote:

>
> Op 20-07-2020 om 11:31 schreef Darius Blaszyk via fpc-pascal:
> > Thanks for the suggestions. I had a look at the fppkgreposerver, but
> > this is indeed more complex than I need at the moment. The project I am
> > working on is a closed source at the moment, so making use of public
> > build services is unfortunately not an option for me.
> >
> > I was considering making an instantFPC script that could be run from a
> > cron job, or remains in an endless loop, checking the repo every x
> > minutes, and in case it detects a commit, would execute a build script
> > (fpmake / pmake) and then upload the created package via ftp. I have
> > limited experience with uploading via ftp through an fpc application,
> > but would LNet be most suited? Also interfacing (username/password) via
> > TProcess is new to me.
> >
> > Is there any resources (like fppkgreposerver) that I could (re)use?
>
> Actually, the fppkgreposerver also contains a (s)ftp connection. But it
> works as a server, you need a client.
>
> For uploading a single file on a linux system, I would install lftp, and
> then call lftp using TProcess, using the --env-password option and then
> set tne LFTP_PASSWORD environment option in TProcess to pass the password.
>
> This is easier than using (s)ftp directly from your application.
>
> Regards,
>
> Joost.
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200819/a5d40346/attachment.htm>


More information about the fpc-pascal mailing list