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
DrInfiniteExplorer
Posts: 39
Joined: Wed Dec 30, 2020 2:16 am

Re: Changes at TravisCI- affecting open source

Post by DrInfiniteExplorer »

voskos wrote: Fri Jan 08, 2021 8:15 am So what is the plan :?:
Indeed. What's your take on using docker images for building?
user1234
Veteran
Posts: 3512
Joined: Mon Jul 11, 2016 5:08 pm

Re: Changes at TravisCI- affecting open source

Post by user1234 »

Why Docker? Is an AppImage not enough?
User avatar
DrInfiniteExplorer
Posts: 39
Joined: Wed Dec 30, 2020 2:16 am

Re: Changes at TravisCI- affecting open source

Post by DrInfiniteExplorer »

user1234 wrote: Sun Jan 10, 2021 9:25 pm Why Docker? Is an AppImage not enough?
Maybe I've misunderstood, my understanding is the AppImage are for distributing prebuilt binaries.
The docker image is to document/distribute the development environment itself, so the setup to be able to build FreeCAD would (in essence) be
1. Clone repo
2. docker run
3. make

And this regardless of what other or conflicting libraries and compilers and settings you have on your development machine.
As a boon many CI systems have build in support for running inside docker containers, which makes it a breeze to switch between hosting solutions, and if you want to verify some behaviour then you are one docker start away from executing in that exact environment.
Not to mention that a lot of IDEs come with support for building inside docker containers.
User avatar
voskos
Posts: 67
Joined: Mon Dec 21, 2020 4:22 pm
Location: Greece

Re: Changes at TravisCI- affecting open source

Post by voskos »

Note: The Netgen mesher was disabled in March 2017, when FreeCAD transitioned to using OCCT 7.1. Please edit this information if Netgen is usable again with the stable release of FreeCAD.
https://wiki.freecadweb.org/FEM_Install

This does not hold anymore, right?
User avatar
voskos
Posts: 67
Joined: Mon Dec 21, 2020 4:22 pm
Location: Greece

Re: Changes at TravisCI- affecting open source

Post by voskos »

A compatibility matrix for developers would be a brilliant idea :roll:
user1234
Veteran
Posts: 3512
Joined: Mon Jul 11, 2016 5:08 pm

Re: Changes at TravisCI- affecting open source

Post by user1234 »

DrInfiniteExplorer wrote: Sun Jan 10, 2021 9:39 pm Maybe I've misunderstood, my understanding is the AppImage are for distributing prebuilt binaries.
Yes i have. This makes sense.

Greetings
user1234
User avatar
voskos
Posts: 67
Joined: Mon Dec 21, 2020 4:22 pm
Location: Greece

Re: Changes at TravisCI- affecting open source

Post by voskos »

Tiny update,
I finally have ubuntu+windows+macos building and running the command line tests successfully,
Now comes the question, do we need binary installers, or do we prefer zip bundles for quick and dirty download-and-runs?
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Changes at TravisCI- affecting open source

Post by Kunda1 »

voskos wrote: Wed Jan 13, 2021 10:00 am Tiny update,
I finally have ubuntu+windows+macos building and running the command line tests successfully,
Now comes the question, do we need binary installers, or do we prefer zip bundles for quick and dirty download-and-runs?
Fantastic! ATM, zip bundles. Later we can discuss binary installers.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
voskos
Posts: 67
Joined: Mon Dec 21, 2020 4:22 pm
Location: Greece

Re: Changes at TravisCI- affecting open source

Post by voskos »

https://github.com/vosk/FreeCAD/actions/runs/483898470
Kinda sorta done. Feel free to comment and test, I have yet to download a single .zip. Github limits I guess
EDIT:
Quite a few things to iron out, linux users must set LD_LIBRARY_PATH
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Changes at TravisCI- affecting open source

Post by Kunda1 »

voskos wrote: Thu Jan 14, 2021 8:25 am Kinda sorta done. Feel free to comment and test, I have yet to download a single .zip. Github limits I guess
Can you explain how to test this ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply