Changes at TravisCI- affecting open source

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

Re: Changes at TravisCI- affecting open source

Post by PrzemoF »

.. instal ccache
- ger maintainer access to the gitlab repo or obtain runner registration token
- regiater the docker runner. There is a script in my repo for that
- done!

Every tike there is a new commit gitlab will push it to the runner (aka yous laptop)./Check the other topic I created for gitlab - there is aome info about how the system works.

I don't know how gitlab picks runners if there is a pool and ccache works for me, but has not been tested by anybody else
P.S. I run fedora, but debian has to be OK as well
User avatar
adrianinsaval
Veteran
Posts: 5548
Joined: Thu Apr 05, 2018 5:15 pm

Re: Changes at TravisCI- affecting open source

Post by adrianinsaval »

PrzemoF wrote: Tue Sep 14, 2021 9:02 am .. instal ccache
shouldn't that be necessary only inside the docker container?
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Changes at TravisCI- affecting open source

Post by PrzemoF »

No. The containers are disposable, but the cache needs to be preserved. I'm open to correction - I'm not a docker specialist.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Changes at TravisCI- affecting open source

Post by bernd »

have a setup debian machine, ccache is installed. Next step seams up to you ...
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Changes at TravisCI- affecting open source

Post by PrzemoF »

do you have a gitlab account? I'd give you more rights to my repo. Anyway, I'll PM you the token
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Changes at TravisCI- affecting open source

Post by bernd »

PrzemoF wrote: Tue Sep 14, 2021 6:42 pm do you have a gitlab account? I'd give you more rights to my repo. Anyway, I'll PM you the token
saem user name as github ...

https://gitlab.com/berndhahnebach
https://github.com/berndhahnebach
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Changes at TravisCI- affecting open source

Post by PrzemoF »

Invitation sent. You'll have full access. Mess around - the repo is there mostly to develop the CI with gitlab. After registering your runner you'll see it in Settings->CI/CD->Runners
Mine is local-docker-runner, there was also a test runner by Felix called runner-felix. Please do not reset the registration token, or let me know if you change it.

Edit: the running jobs can be watched here: https://gitlab.com/PrzemoF/FreeCAD/-/pipelines (CI/CD->pipelines)
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Changes at TravisCI- affecting open source

Post by kkremitzki »

Wouldn't it be easiest to just move to GitHub Actions for now? They even have Windows, macOS, and Linux runners, so we could have all the CI/CD in one place.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Changes at TravisCI- affecting open source

Post by PrzemoF »

Possibly yes, if someone is willing to work on it. The main argument is that it's a wasted work. We have to get ready for self hosting, and gitlab is a step towards it.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Changes at TravisCI- affecting open source

Post by bernd »

Mhh I don not really understand whats going on on my old laptop and how, but it runs :D ... Thanks to step by step readmy of przemo. I need to play with this. 8-)

cheers bernd


Screenshot_20210919_215414.png
Screenshot_20210919_215414.png (284.23 KiB) Viewed 2095 times
Post Reply