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
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Changes at TravisCI- affecting open source

Post by yorik »

Is there a way to set gitlab to automatically mirror a github repo? So far I have a local script on my machine that does it everytime I git push...
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Changes at TravisCI- affecting open source

Post by openBrain »

yorik wrote: Thu Sep 23, 2021 2:03 pm Is there a way to set gitlab to automatically mirror a github repo? So far I have a local script on my machine that does it everytime I git push...
https://docs.gitlab.com/ee/user/project ... repository ;)
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Changes at TravisCI- affecting open source

Post by bernd »

yorik wrote: Thu Sep 23, 2021 2:03 pm Is there a way to set gitlab to automatically mirror a github repo?
yes see attached picture. But it did not work for me on my existing FreeCAD repo (may be because I had a master branch, I do not know I did not investigated time). I deleted my FreeCAD repo on gitlab and created a new empty one. On this it worked. This is the one the CI runs ATM.

I have neither set up a token nor given a username. Just the link the pull and thats it. It will be pulled around all 25 minutes. But one can click the button and the repo will be sync in around 20 seconds.

https://gitlab.com/berndhahnebach/FreeC ... its/master
Attachments
screen.png
screen.png (211.79 KiB) Viewed 2596 times
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Changes at TravisCI- affecting open source

Post by bernd »

chennes wrote: Tue Sep 21, 2021 4:35 pm Also, is there a "[noci]" tag or something we can put in commits and/or pull requests when they don't affect the code? I just pushed a change to one of the tools, there's no reason to burn your CPU time checking that one...
yes there is, use "[skip ci]" in commit message. See as an example git commit 00bb1d0b58aaba and the skiped pipeline on CI https://gitlab.com/berndhahnebach/FreeC ... /376489231
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Changes at TravisCI- affecting open source

Post by bernd »

for all open PRs the CI has been set up as well as a comment has been made to rebase the PR to latest master ...

https://gitlab.com/berndhahnebach/FreeC ... e=branches
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Changes at TravisCI- affecting open source

Post by bernd »

chennes wrote: ping
Artefacts can be downloaded from https://gitlab.com/berndhahnebach/FreeCAD/-/pipelines

artifacts.png
artifacts.png (208.52 KiB) Viewed 2378 times
User avatar
chennes
Veteran
Posts: 3876
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Changes at TravisCI- affecting open source

Post by chennes »

bernd wrote: Fri Sep 24, 2021 1:07 pm Artefacts can be downloaded from https://gitlab.com/berndhahnebach/FreeCAD/-/pipelines
That's excellent, thank you -- my real hope for this is that in the long run we will have CI generating executables for all our major platforms, and then even people who can't compile FreeCAD can test PRs.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: Changes at TravisCI- affecting open source

Post by abdullah »

kkremitzki wrote: Tue Sep 14, 2021 8:03 pm 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.
I have just gone through this thread from the beginning to "catch up".

To answer your question (although it may bring nothing with Przemo and Bernd duo almost there), another user, vosk, did some work on GitHub actions in Q1 2021:

https://github.com/vosk/FreeCAD/blob/gi ... /cmake.yml
https://github.com/vosk/FreeCAD/actions
https://github.com/vosk/FreeCAD/tree/gi ... /workflows
https://github.com/vosk/FreeCAD/actions/runs/483898470
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 »

Any idea why it was not proposed for the master branch?
User avatar
jonasb
Posts: 162
Joined: Tue Dec 22, 2020 7:57 pm

Re: Changes at TravisCI- affecting open source

Post by jonasb »

PrzemoF wrote: Sun Sep 26, 2021 9:34 pm Any idea why it was not proposed for the master branch?
I think it was. Even in this very thread; start at page 3.
Post Reply