ci_helloworld icon indicating copy to clipboard operation
ci_helloworld copied to clipboard

gitlab ci runner

Open MBalszun opened this issue 7 years ago • 9 comments

Thanks for this great demonstrator.

Have you considered adding an example for the gitlab ci runner? Unfortunately, I don't know if this can be used with a github repository.

MBalszun avatar Oct 19 '17 20:10 MBalszun

We have internally (we actually use Gitlab for our closed source). I would welcome any ideas on how to provide a template for Gitlab in open source.

rianquinn avatar Oct 19 '17 20:10 rianquinn

I don't know a good solution either, but just as a start, you could put the .gitlab-ci.yml just as an example into this repo even if it doesn't get used (of course it would be kind of schizophrenic if the ci-control file would not be checked by a ci-system).

MBalszun avatar Oct 19 '17 20:10 MBalszun

Let me think about it some more, but in general I agree with the feature request.

rianquinn avatar Oct 19 '17 21:10 rianquinn

A good option would be, to open a fork of this repository on gitlab.com. They support free CI runs for public open source projects. See: https://about.gitlab.com/gitlab-com

arBmind avatar Oct 21 '17 22:10 arBmind

@arBmind I just setup an account, so I will play with this and see what I can come up with.

rianquinn avatar Oct 21 '17 22:10 rianquinn

Gitlab now supports running CI pipelines for github projects: https://about.gitlab.com/features/github/. It does come with a catch though: the pipeline won't run for pull requests from forks due to issues with secure variables (https://gitlab.com/gitlab-org/gitlab-ee/issues/5667).

Setting it up is quite easy if you give gitlab access to your account, then it'll do everything automatically. You only have to provide a .gitlab-ci.yml configuration. We are currently using it for Exiv2 to run the pipeline on various Linux distros.

D4N avatar May 24 '18 15:05 D4N

Thats awesome. I have some additional updates on some git work that I have to upstream still, we should include this as well. I'd love to see a PR if your willing to put on together.

rianquinn avatar May 24 '18 18:05 rianquinn

Sure, I can prepare something. The question would be however: what do you want to test on gitlab? Probably not the same stuff as on Travis, I guess?

A few options would be:

  • run the build in different docker containers (e.g. to test different Linux distros)
  • create the doxygen documentation and upload it to gitlab pages
  • add a custom runner (allows you to run builds inside vms), but I guess that's too much work (you'd have to host the runner yourself)

D4N avatar May 24 '18 18:05 D4N

I like 1 and 2

rianquinn avatar May 24 '18 20:05 rianquinn