Recent

Author Topic: CI and Lazarus?  (Read 4669 times)

lainz

  • Hero Member
  • *****
  • Posts: 4473
    • https://lainz.github.io/
CI and Lazarus?
« on: December 08, 2016, 02:55:10 pm »
For example if I want to get automatic development builds of a program made with lazarus with one of the CI tools available online (appveyor). There's a tutorial on how to do it?

It for example needs some packages installed in the IDE to work.

I'm intrigued since I recently seen an appveyor file in New Pascal.

And if is not possible don't mind. Is a specific question, I know I can automate that in my machine too, but I'm asking about online services.

hnb

  • Sr. Member
  • ****
  • Posts: 270
Re: CI and Lazarus?
« Reply #1 on: December 08, 2016, 10:21:27 pm »
AFAIK we don't have any step-by-step tutorial about this. You need to read documentation for appveyor. See related issue on github for NewPascal, good start point and simple example for appveyor how to compile project with FPC :

https://github.com/newpascal/newpascal.github.io/issues/2

I'm intrigued since I recently seen an appveyor file in New Pascal.

NewPascal build by appveyor is incomplete yet (just win32 platform). I have in TODO more crosscompilers for Appveyor and also Travis CI for linux and macos. NewPascal CI has 3 parts:

1. build modified FPC compiler: https://github.com/newpascal/freepascal/blob/master/appveyor.yml
2. build Lazarus (with compiler from point 1): https://github.com/newpascal/lazarus/blob/master/appveyor.yml
3. mix 1 & 2 into one package and pre-release it: https://github.com/newpascal/newpascal/blob/master/appveyor.yml

Small tip for own distro: usefully commands for lazbuild
http://wiki.freepascal.org/lazbuild

Checkout NewPascal initiative and donate beer - ready to use tuned FPC compiler + Lazarus for mORMot project

best regards,
Maciej Izak

lainz

  • Hero Member
  • *****
  • Posts: 4473
    • https://lainz.github.io/
Re: CI and Lazarus?
« Reply #2 on: December 08, 2016, 11:04:51 pm »
Many thanks for your response.

I will read the documentation of appveyor, seems a simple script file to build with FPC, the one that's on github. With lazarus I need of course lazbuild, but I will try with FPC only first.

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: CI and Lazarus?
« Reply #3 on: December 09, 2016, 03:00:58 am »
I am just curious. I am neither trying to offend anybody nor I am trying to start a flame war.

Besides a building server, of course, setted with SVN, FPC, LATEX, unit testing, QA tools, cron and many shell scripts (bash), what else is needed so we can have FPC and Lazarus Daily Snapshot Builds such as some other open source projects?
http://www.firebirdsql.org/en/snapshot-builds/
http://web.firebirdsql.org/download/snapshot_builds/win/4.0/
http://firebirdsql.org/en/planning-board/

If the server is the showstopper, I could pay for an Amazon EC2 On-Demand account that could build, including cross-compiling, the binaries and upload then to sourceforge.net.
Because of bandwidth, this server would not serve general public, it would be restricted to only upload the generated binaries to sourceforge.net.
https://aws.amazon.com/ec2/


https://www.paruwo.com/blog/2014/06/01/lazarus-and-continuous-integration/
http://wiki.freepascal.org/Jenkins
http://lists.lazarus.freepascal.org/pipermail/lazarus/2015-July/093231.html
http://stackoverflow.com/questions/6717844/is-there-any-ci-for-free-pascal
http://lists.lazarus.freepascal.org/pipermail/lazarus/2015-July/093231.html
https://ci.debian.net/packages/l/lazarus/unstable/amd64/

http://forum.lazarus.freepascal.org/index.php/topic,13754.msg72238.html#msg72238
http://forum.lazarus.freepascal.org/index.php/topic,29957.msg190018.html#msg190018
https://travis-ci.org/

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: CI and Lazarus?
« Reply #4 on: December 09, 2016, 03:42:48 am »
..what else is needed so we can have FPC and Lazarus Daily Snapshot Builds such as some other open source projects?
A browser or other tool that is able to download files such as FPC from snapshots, and Lazarus snapshot sources.

Personally i just think its a waste of bandwidth. vcs was invented for this purpose.

Besides that, it is not always possible to build a daily version simply because things are broken (sometimes intentionally).

 

TinyPortal © 2005-2018