Lazarus

Announcements => Third party => Topic started by: nielsAD on October 11, 2015, 12:48:50 am

Title: Lazarus builds on Travis CI (Linux/OSX/Wine/qemu-arm)
Post by: nielsAD on October 11, 2015, 12:48:50 am
Travis-Lazarus (https://github.com/nielsAD/travis-lazarus (https://github.com/nielsAD/travis-lazarus))

I have created a bootstrapping script for FPC/Lazarus usage on Travis CI.
Might be useful for other GitHub users among us.  :)

Travis CI (https://travis-ci.org/ (https://travis-ci.org/)) is a continuous integration service used to build and test projects hosted at GitHub. It currently has no official support for FreePascal, so I have created an example project that demonstrates how FPC and Lazarus projects can be used. There is support for building with multiple Lazarus releases on both Travis' Linux and Mac OSX platforms. Support for Windows (both win32 and win64) is done using Wine.

Repository: https://github.com/nielsAD/travis-lazarus (https://github.com/nielsAD/travis-lazarus)
Example output: https://travis-ci.org/nielsAD/travis-lazarus (https://travis-ci.org/nielsAD/travis-lazarus)

EDIT: Also added ARM support using QEMU.
Title: Re: Lazarus builds on Travis CI (Linux/OSX/Wine)
Post by: mdbs99 on October 20, 2015, 12:35:37 am
Good job!
I was reading about Travis and I didn't see Pascal language support... but I found your project!

I'm a Windows developer. Do you think there are many features that will not working using Wine?
Did you asked for the Travis' developers if they think is possible to include support to Pascal language as default on Travis?

Thank you.
Title: Re: Lazarus builds on Travis CI (Linux/OSX/Wine)
Post by: nielsAD on October 20, 2015, 11:01:00 pm
It is possible to provide community-support (http://docs.travis-ci.com/user/languages/community-supported-languages/ (http://docs.travis-ci.com/user/languages/community-supported-languages/)) for a language, but I don't see the Travis team adding FPC themselves.

Wine often surprises me about the features it supports, but (of course) it is no Windows replacement. I would primarily use it to test whether or not code compiles. Simple tests might work as well, but for more thorough tests (e.g. installer or UAC) Wine is probably not sufficient.
Title: Re: Lazarus builds on Travis CI (Linux/OSX/Wine)
Post by: mdbs99 on October 21, 2015, 02:04:25 am
Well, I think we have at least 3 people. I sent your work for a friend and he liked too.

If I can't work with any kind of program to run on Windows (Wine) to use Travis...Ok, no problem. If I can run only the TestCases for business rules, would be great for me.

I forked your project.
Title: Re: Lazarus builds on Travis CI (Linux/OSX/Wine)
Post by: nielsAD on January 16, 2016, 05:40:30 pm
Today, I added basic ARM support with help of QEMU. It will cross compile on the host platform and then run using qemu-arm. Again, useful for testing compilation and running simple unit tests :)

Also note that Travis-CI can be used for automatically building releases (https://docs.travis-ci.com/user/deployment/releases/).
Title: Re: Lazarus builds on Travis CI (Linux/OSX/Wine/qemu-arm)
Post by: z0rr0 on May 10, 2017, 06:13:32 pm
That is a fantastic new! I was looking for that for a while. I am very interested in use travis for CI for my torokernel. Thanks a lot!
TinyPortal © 2005-2018