Future of Travis CI...

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
User avatar
apeltauer
Posts: 269
Joined: Fri Aug 11, 2017 2:19 pm

Re: Future of Travis CI...

Postby apeltauer » Mon Mar 11, 2019 6:36 pm

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
Posts: 2752
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Future of Travis CI...

Postby PrzemoF » Mon Mar 11, 2019 7:09 pm

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

Re: Future of Travis CI...

Postby apeltauer » Mon Mar 11, 2019 8:34 pm

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

Re: Future of Travis CI...

Postby ezzieyguywuf » Sat Mar 16, 2019 12:21 am

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
Posts: 2752
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Future of Travis CI...

Postby PrzemoF » Sat Mar 16, 2019 4:35 pm

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: 637
Joined: Tue May 19, 2015 1:11 am

Re: Future of Travis CI...

Postby ezzieyguywuf » Sat Mar 16, 2019 11:18 pm

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