Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using gitLab-CI for Qt-Projects

I want to use gitLab-CI for a Qt-project, but i can't figure out, what I need to do so. I understand, that the whole pipeline process takes place on the CI-Server, but how do I setup the needed requirements like the qt-environment?

Solution:

Ok now I got it! You just use the Runner for it, if you do not have a Server, you can use a VM.

like image 843
ManuelP. Avatar asked Aug 21 '16 14:08

ManuelP.


1 Answers

For GitLab.com

  • The runners are already set up (shared runners).
  • You need to use a Qt SDK Docker image or install it yourself:
    • Use image: <image-name> for .gitlab-ci.yml
    • Use apt or some other package manager (not recommended)
  • Once you got a Qt SDK environment set up inside .gitlab-ci.yml, make sure to add a command to build/compile/run/test it.

For non-GitLab.com

  • The runners may or may not be set up, but you do not need to do any specific changes (other than using faster machines with bigger memory, etc for building in necessary).
  • You need to use a Qt SDK Docker image or install it yourself:
    • Use image: <image-name> for .gitlab-ci.yml
    • Use apt or some other package manager (not recommended)
  • Once you got a Qt SDK environment set up inside .gitlab-ci.yml, make sure to add a command to build/compile/run/test it.

Other Helpful Comments

This is from Josh Peak's comment:

Ok that answers my question. I'm going to have to preconfigure a VM image and/or a Docker image with the QT SDK that the rest of my dev team can leverage. Thanks for the quick response.

This answer is from ManuelP.'s question:

Ok now I got it! You just use the Runner for it, if you do not have a Server, you can use a VM.

like image 57
Ken Shibata Avatar answered Sep 19 '22 12:09

Ken Shibata