qt - 将 gitLab-CI 用于 Qt 项目

标签 qt continuous-integration gitlab-ci

我想将 gitLab-CI 用于 Qt 项目,但我不知道我需要这样做。我明白,整个管道过程发生在 CI-Server 上,但我如何设置所需的要求,如 qt-environment?
解决方案:
好的,现在我明白了!您只需使用 Runner,如果您没有 Server,您可以使用 VM。

最佳答案

对于 GitLab.com

  • 运行者已经设置(共享运行者)。
  • 您需要使用 Qt SDK Docker 镜像或自行安装:
  • 使用 image: <image-name>.gitlab-ci.yml
  • 使用 apt或其他一些包管理器(不推荐)
  • 一旦您在 .gitlab-ci.yml 中设置了 Qt SDK 环境,确保添加一个命令来构建/编译/运行/测试它。

  • 对于非 GitLab.com
  • 运行者可能已设置,也可能未设置,但您无需进行任何特定更改(除了使用速度更快、内存更大的机器等进行必要的构建)。
  • 您需要使用 Qt SDK Docker 镜像或自行安装:
  • 使用 image: <image-name>.gitlab-ci.yml
  • 使用 apt或其他一些包管理器(不推荐)
  • 一旦您在 .gitlab-ci.yml 中设置了 Qt SDK 环境,确保添加一个命令来构建/编译/运行/测试它。

  • 其他有用的评论

    这是来自 Josh Peak 的评论:

    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. 的问题:

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

    关于qt - 将 gitLab-CI 用于 Qt 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39065342/

    相关文章:

    c++ - 如何将字符串/数字排序添加到 QSortFilterProxyModel 派生类

    javascript - 使用 XMLHttpRequest 下载二进制数据,无需 overrideMimeType

    ios - jenkins 集成 xcode - shell 命令

    azure - 将文件复制到任务无法找到 **/*.ipa 文件

    node.js - Kubernetes - 入口/服务/LB

    docker - 一台主机上有多个 GitLab Runner Docker 实例?

    c++ - 我可以对 QTimers 和信号使用 C++ 对象创建优化吗?

    c++ - 可以从 QXmlStreamWriter 获取 QDomElement 吗?

    ios - jenkins ios 构建中 Office 365 的电子邮件通知失败

    windows - 如何在 Windows 上调试 "Could not add identity : agent refused operation"?