Using gitLab-CI for Qt-Projects

扶醉桌前 提交于 2020-06-25 03:43:43

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/39065342/using-gitlab-ci-for-qt-projects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!