This patch removes the code not really necessary to
successfully complete the current CI/CD tests, the main
purpose of this is to reduce the complexity before
implementing the tests for other distributions too.
This is the first step in creating a CI/CD infrastructure
for DMD's Snap packages.
The CI/CD tests will be performed through
Github Actions (https://github.com/features/actions), the
executive scripts will be placed in .github/workflows while
the respective Dockerfiles in .github/docker
We need to create a workflow for each "family" of distributions,
for example there will have to be an ubuntu.yml workflow that
will handle every version of Ubuntu we intend to support.
While the Dockerfiles must be different for each version, they
will be placed in subdirectories of .github/docker to separate
the distribution families, for example there must be the
file .github/docker/ubuntu/Xenial.Dockerfile
Unfortunately since snapd depends on systemd you need to install it,
to make systemd work in Docker I replaced /sbin/udevadm with /bin/true
because otherwise it would have given problems inside the container,
this should not be a problem since udev is not needed to test DMD.
Currently the tests will only interest the DMD build phase, I have
only inserted a small test to verify if at least the builded
Snap package is able to install and perform a simple operation
inside Ubuntu Xenial (dmd --version).
The next works will concern the expansion of the runtime tests and
increasing the number of supported distributions with time.
Since the versions starting from phobos 2.087 have this
merged pull request: dlang/phobos#6966
It is no longer necessary to manually create the symlink.
This reverts commit 81121388003524852b37a72a0506bfa3da2c5c15.
Upstream phobos still does not generate the symlink, even though the PR
adding it was merged before the 2.086.0 release. We therefore need to
keep this workaround in the snap package.