After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 748542 - Travis-CI: remove sudo dependencies
Travis-CI: remove sudo dependencies
Status: RESOLVED WONTFIX
Product: mousetrap
Classification: Other
Component: General
3.17.x
Other All
: Normal normal
: ---
Assigned To: mousetrap-maint
mousetrap-maint
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2015-04-27 17:34 UTC by Stoney Jackson
Modified: 2018-08-17 19:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stoney Jackson 2015-04-27 17:34:49 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.
Comment 1 Kevin Brown 2015-05-01 01:57:40 UTC
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
Comment 2 André Klapper 2018-08-17 19:45:26 UTC
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.