* * *

Author Topic: Lazarus builds on Travis CI (Linux/OSX/Wine/qemu-arm)  (Read 2152 times)

nielsAD

  • Newbie
  • Posts: 3
Lazarus builds on Travis CI (Linux/OSX/Wine/qemu-arm)
« on: October 11, 2015, 12:48:50 am »
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/) 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
Example output: https://travis-ci.org/nielsAD/travis-lazarus

EDIT: Also added ARM support using QEMU.
« Last Edit: January 16, 2016, 05:41:16 pm by nielsAD »

mdbs99

  • Full Member
  • ***
  • Posts: 107
Re: Lazarus builds on Travis CI (Linux/OSX/Wine)
« Reply #1 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.

nielsAD

  • Newbie
  • Posts: 3
Re: Lazarus builds on Travis CI (Linux/OSX/Wine)
« Reply #2 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/) 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.

mdbs99

  • Full Member
  • ***
  • Posts: 107
Re: Lazarus builds on Travis CI (Linux/OSX/Wine)
« Reply #3 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.

nielsAD

  • Newbie
  • Posts: 3
Re: Lazarus builds on Travis CI (Linux/OSX/Wine)
« Reply #4 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.

z0rr0

  • New member
  • *
  • Posts: 30
Re: Lazarus builds on Travis CI (Linux/OSX/Wine/qemu-arm)
« Reply #5 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!

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus