This repository has been archived by the owner on Mar 29, 2024. It is now read-only.
TravisCI: Migrate Linux builds from trusty to xenial #73
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First PR regarding the maintenance of Tulip CI builds.
Now that's Qt4 support has been dropped and Ubuntu xenial is available as base image on TravisCI, I thought is was time to upgrade the Linux builds of Tulip to a more contemporary environment.
Ubuntu trusty was used as the base image before but it's quite old nowadays for compiling desktop applications (its Qt5 version is 5.2.0 for instance). Migrating the builds to xenial offers updated packages with versions close to those of debian stretch (stable). Il also enables to perform legacy / modern build of Tulip (in terms of compiler, Qt and Python version) with a more concise Travis configuration. Last but not least, it gives more contemporary hints on how to build Tulip on debian based distribution.
The versions of the compilers / dependencies of these updated builds are the following:
legacy build: GCC 5.4, Qt 5.5 and Python 2.7.
modern build: GCC 8.1, Qt 5.11 and Python 3.7.
In order to benefit from a recent Qt5 version, I used the repository from the kde neon project allowing to benefit from upstream KDE/Qt software on top of Ubuntu LTS. I also noticed a deadlock when running a unit test with recent Qt5 version, I had to slightly patch some files to remove it.
That PR also fixes the detection of OpenMP with CMake when using clang provided by Homebrew and change the Python version used to build AppImages from 2.7 to 3.5 (Python 2 is close to its death so Python 3 should be the preferred version to bundle when distributing Tulip).