<div dir="ltr"><div>Hi Travis & Joost,</div><div><br></div><div>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.</div><div><br></div><div>Rgds, Darius<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 4, 2020 at 1:58 PM Joost van der Sluis <<a href="mailto:joost@cnoc.nl">joost@cnoc.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Op 20-07-2020 om 11:31 schreef Darius Blaszyk via fpc-pascal:<br>
> Thanks for the suggestions. I had a look at the fppkgreposerver, but <br>
> this is indeed more complex than I need at the moment. The project I am <br>
> working on is a closed source at the moment, so making use of public <br>
> build services is unfortunately not an option for me.<br>
> <br>
> I was considering making an instantFPC script that could be run from a <br>
> cron job, or remains in an endless loop, checking the repo every x <br>
> minutes, and in case it detects a commit, would execute a build script <br>
> (fpmake / pmake) and then upload the created package via ftp. I have <br>
> limited experience with uploading via ftp through an fpc application, <br>
> but would LNet be most suited? Also interfacing (username/password) via <br>
> TProcess is new to me.<br>
> <br>
> Is there any resources (like fppkgreposerver) that I could (re)use?<br>
<br>
Actually, the fppkgreposerver also contains a (s)ftp connection. But it <br>
works as a server, you need a client.<br>
<br>
For uploading a single file on a linux system, I would install lftp, and <br>
then call lftp using TProcess, using the --env-password option and then <br>
set tne LFTP_PASSWORD environment option in TProcess to pass the password.<br>
<br>
This is easier than using (s)ftp directly from your application.<br>
<br>
Regards,<br>
<br>
Joost.<br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a><br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
</blockquote></div>