<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Instead of ftp, you could use something like scp (assuming you
have access to the target machine, and can generate the key pairs
you need). That would allow you to simply copy the compiled
executable onto the target machine, without needing any automation
with passwords and the like.</p>
<p>Rsync can do this too, but I find scp considerably easier to use.<br>
</p>
<div class="moz-cite-prefix">On 7/20/2020 5:31 AM, Darius Blaszyk
via fpc-pascal wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAOOn3iR+6SYoEhs7GZV=H4kj4t5AxVoqCNK5zVEafhetbsN5vA@mail.gmail.com">
<div dir="ltr">Hi Joost,
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Is there any resources (like fppkgreposerver) that I could
(re)use?</div>
<div><br>
</div>
<div>Rgds, Darius</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Jul 17, 2020 at 2:50
PM Joost van der Sluis <<a href="mailto:joost@cnoc.nl"
target="_blank" moz-do-not-send="true">joost@cnoc.nl</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote">Op 16-07-2020 om 08:37 schreef
Darius Blaszyk via fpc-pascal:<br>
<br>
> I was looking for the sources of a buildbot suitable for
an FPC project. I would like to keep it as simple as possible,
so no webserver hassle for instance. Just simply repo sync,
build, run test suite and upload to ftp. I know <a
href="http://buildbot.net" rel="noreferrer" target="_blank"
moz-do-not-send="true">buildbot.net</a> but I was hoping on
finding something specifically suited for FPC. Does anything
like that already exists? Any help would be appreciated.<br>
<br>
Well, there are the buildagents used by the fppkg-repository.
You can <br>
use them to build fppkg-packages. Try for yourself at: <br>
<a href="https://fppkg.cnoc.nl/build" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://fppkg.cnoc.nl/build</a>
(Login with your mantis or forum-account)<br>
<br>
The code of these buildagents is here, but it's not 'simple':
<br>
<a
href="http://svn.freepascal.org/FPC/svn/fpcprojects/fppkgreposerver/trunk/buildagent"
rel="noreferrer" target="_blank" moz-do-not-send="true">svn.freepascal.org/FPC/svn/fpcprojects/fppkgreposerver/trunk/buildagent</a><br>
<br>
Easiest way is to use an existing build-environment like
Jenkins. But <br>
you can also use gitlab.<br>
<br>
Look for example here: <br>
<a
href="https://gitlab.freepascal.org/Joost/fpdserver/pipelines/293/builds"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://gitlab.freepascal.org/Joost/fpdserver/pipelines/293/builds</a><br>
<br>
That one is automatically build after each commit. That's done
with an <br>
easy CI-script, and a kubernetes-cluster with a container with
fpc <br>
installed. (It's the same kubernetes-cluster as the
fppkg-repository <br>
above uses)<br>
<br>
There are so many options...<br>
<br>
Regards,<br>
<br>
Joost.<br>
<br>
_______________________________________________<br>
fpc-pascal maillist - <a
href="mailto:fpc-pascal@lists.freepascal.org"
target="_blank" moz-do-not-send="true">fpc-pascal@lists.freepascal.org</a><br>
<a
href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
fpc-pascal maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a>
</pre>
</blockquote>
</body>
</html>