将gitLab-CI用于Qt项目 [英] Using gitLab-CI for Qt-Projects

查看:425
本文介绍了将gitLab-CI用于Qt项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将gitLab-CI用于Qt项目,但我不知道该怎么做。我了解整个流水线过程都在CI服务器上进行,但是我如何设置所需的要求(如qt环境)?

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?

好吧,我明白了!您只需使用Runner,如果没有服务器,就可以使用VM。

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

推荐答案

对于GitLab。 com




  • 赛跑者已经设置好了(共享赛跑者)。

  • 您需要使用Qt SDK Docker映像或自行安装:


    • 使用 image:< image-name> .gitlab-ci.yml

    • 使用 apt 或其他软件包管理器(不推荐)

    • 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)

          • 可以设置跑步者,也可以不设置跑步者,但是您不需要更改(除了使用更快的计算机和更大的内存等,以便进行必要的构建)。

          • 您需要使用Qt SDK Docker映像或自己安装它:


              image:< image-name> 用作 .gitlab-ci.yml
            • 使用 apt 或其他软件包管理器(不推荐)

            • 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)

              这是Josh Peak的评论:

              This is from Josh Peak's comment:


              可以回答我的问题。我将不得不使用QT SDK预先配置VM映像和/或Docker映像,以便其他开发团队可以利用。感谢您及时的回复。

              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.

              此答案来自ManuelP。的问题:

              This answer is from ManuelP.'s question:


              好吧,我明白了!您只需使用Runner即可,如果没有服务器,则可以使用VM。

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

              这篇关于将gitLab-CI用于Qt项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆