Hi, anyone is running successfully tests on gitlab CI with python27?
I'm trying everything but i always have an error when launching a bin script (instance or test).
I ran py2 on GitLab some time ago. Not open source though. By looking at the trace I can not see anything obvious. Are you creating your own virtualenv or using the GitLab/Docker Python?
The strange thing is that Plone cannot find itself:
File "/builds/cekk/example.package/eggs/Products.CMFPlone-5.2.1-py2.7.egg/Products/CMFPlone/__init__.py", line 8, in <module>
[1547](https://gitlab.com/cekk/example.package/-/jobs/484716902#L1547) __version__ = pkg_resources.require("Products.CMFPlone")[0].version
File "/builds/cekk/example.package/venv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
I suspect that setuptools might be the guilty one.
@tisto i recall to made some tests some time ago but right now they seem to not work anymore. Probably something changed in python27 image or in setuptools?
@alert--no-site-packages is an unrecognized argument in that virtualenv version.
And yes, the strange thing is that Plone cannot find itself.
In a test with different image (python2.7-stretch) i had a different error:
DistributionNotFound: The 'Zope2' distribution was not found and is required by the application
I created a docker image for this: https://gitlab.com/it-spirit/plone-testing-base. Instead of the latest tag use python2. It is based on bobtemplates.plone's .gitlab-ci.yml and can be used with any Plone project. I use this as base for some customers now. The image is available on hub.docker.com. The readme shows an example usage.