To install a project-specific ci-runner:
root@haso999d10:gitlab-runner# gitlab-runner register Runtime platform arch=amd64 os=linux pid=12641 revision=bbcb5aba version=15.3.0 Running in system-mode. Enter the GitLab instance URL (for example, https://gitlab.com/): https://gitlab.desy.de Enter the registration token: GR1348941-5gV_is9nmra-AGsjXJs Enter a description for the runner: [haso999d10]: pySpectraOnhaso999d10 Enter tags for the runner (comma-separated): pySpectra Enter optional maintenance note for the runner: Registering runner... succeeded runner=GR1348941-5gV_is9 Enter an executor: custom, parallels, shell, virtualbox, docker+machine, kubernetes, docker, docker-ssh, ssh, docker-ssh+machine: shell Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded! Configuration (with the authentication token) was saved in "/etc/gitlab-runner/config.toml"
Here is the corresponding .gitlab-ci.yml file executing the unit test.
# # # stages: - testAll testAll: stage: testAll tags: [pySpectra] script: - echo "testAll, USER $USER, HOME $HOME, PWD $PWD, DISPLAY $DISPLAY" - export DISPLAY=:1 - python3 -m unittest discover -v - exit 0