Future of Travis CI...

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
apeltauer
Posts: 399
Joined: Fri Aug 11, 2017 2:19 pm

Re: Future of Travis CI...

Post by apeltauer »

I have my own gitlab instance running on a server in my local network.
My build machine is a pc running windows 10, it just compiles and runs test...
My gitlab Ci configuration file is not just a one liner. So I don’t think it make seen to post it here. But basically it is nearly the same then the other Ci’s Like Travis...
Define stages (steps). In the stages you can define steps in before scrip, script (main step), after script...
That’s all... then you have the possibility to save artifacts which can be used in later stages.
See https://docs.gitlab.com/ee/ci/quick_start/
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Future of Travis CI...

Post by PrzemoF »

Thanks for the info!
User avatar
apeltauer
Posts: 399
Joined: Fri Aug 11, 2017 2:19 pm

Re: Future of Travis CI...

Post by apeltauer »

Your welcome. Maybe we could check out if gitlab.com
Is providing a Ci runner for windows/linux in the internet...
ezzieyguywuf
Posts: 656
Joined: Tue May 19, 2015 1:11 am

Re: Future of Travis CI...

Post by ezzieyguywuf »

If you’d like to see a working sample, you can take a look at my OccWrapper project on gitlab. It is a very basic, very incomplete c++ wrapper around opencascade.

here is the ci config. It is pretty straightforward and the gitlab documentation is very good.

I don’t mind answering questions you may have, though I’m far from an expert.
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Future of Travis CI...

Post by PrzemoF »

I did some tests as well, but I'm having problem figuring our what's the system Seems to be some debian/ubuntu (apt-get). My (failing) config for building CalculiX [1]

[1] https://gitlab.com/PrzemoF/calculix-bui ... lab-ci.yml
ezzieyguywuf
Posts: 656
Joined: Tue May 19, 2015 1:11 am

Re: Future of Travis CI...

Post by ezzieyguywuf »

PrzemoF wrote: Sat Mar 16, 2019 4:35 pm ...I'm having problem figuring our what's the system...
@PrzemoF, the CI system on Gitlab uses Docker containers, much the same as travis-ci does (I believe).

You can see here on my config that the first line specifies an "image" variable, which uses my own custom Docker image.

You can get more info here on the gitlab documentation
Post Reply