GNOME Bugzilla – Bug 748542
Travis-CI: remove sudo dependencies
Last modified: 2018-08-17 19:45:26 UTC
Currently .travis.yaml declares `sudo: required`. This is a short term fix that allows MouseTrap to be testing on Travis-CI. However, considering that their default configuration now uses their container-based framework, and that framework does not allow the use of sudo, we should probably figure out how to avoid sudo. 1. We should try to use Travis-CI's apt API for installing standard packages without sudo. 2. Until OpenCV 3 is available through apt, we should figure out how to do a compile and install of OpenCV that does not require sudo.
Right now the following packages are being installed using APT - cmake 2.8.11 (the comment in the file is incorrect [1]) - gnome-common - libopencv-dev - python-gi - python3-gi Right now cmake is the only one that requires an external apt repository (the "kalakris/cmake" PPA), and the "kubuntu-backports" PPA has been whitelisted [2] and contains cmake 2.8.12. cmake [3], python-gi [4], and python3-gi [5] have been whitelisted by Travis CI and can be installed using their APT plugin. libopencv-dev and gnome-common are not yet whitelisted and there do not appear to be any active requests for them to be whitelisted. ---- Because we are not using the system Python to install OpenCV, it might be easy to set up OpenCV to bypass the system directories and install it to a temporary location that we can use. I have not yet looked into this, but it would most likely be under the development documentation. [1]: https://github.com/GNOME/mousetrap/blob/2e32f7047eb336876e586736daa37b45c951fa5f/bin/ci-install-deps.bash#L18 [2]: https://github.com/travis-ci/apt-source-whitelist/commit/856b5c50ff295ef60de4f155651ea7d175dab427 [3]: https://github.com/travis-ci/apt-package-whitelist/blob/bfd1ce935cc59abcda8702d46ca26798d9e6bbe2/ubuntu-precise#L289 [4]: https://github.com/travis-ci/apt-package-whitelist/blob/bfd1ce935cc59abcda8702d46ca26798d9e6bbe2/ubuntu-precise#L5380 [5]: https://github.com/travis-ci/apt-package-whitelist/blob/bfd1ce935cc59abcda8702d46ca26798d9e6bbe2/ubuntu-precise#L5507
mousetrap is not under active development anymore since 2015. Its codebase has been archived: https://gitlab.gnome.org/Archive/mousetrap/commits/master Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the responsibility for active development again.