项目 / ros-industrial/industrial_ci

ros-industrial/industrial_ci

行业推荐
语言 Shell标签 continuous-integrationrostravisgitlabcatkin数据更新 2026-11-13 19:42:00 · 仓库 2026-10-28

一段话介绍

Industrial CI 是一套给 ROS(机器人操作系统)软件包共用的持续集成脚本,用来检查软件包能否构建和安装;若定义了单元或系统测试则会运行,也可选择运行 ROS 预发布测试。当前仓库是重构后并支持 ROS 2 的版本,旧版在 `legacy` 分支,迁移说明见文档。入门时可在 GitHub Actions、GitLab CI、Travis CI 或 Bitbucket Pipelines 中按模板加入配置,指定 `ROS_DISTRO` 后调用相应入口脚本;GitHub Actions 也可直接使用 `ros-industrial/industrial_ci@master` 这个 Action。本页只介绍持续集成用途与入口。说明见[仓库文档](https://github.com/ros-industrial/industrial_ci/blob/master/doc/index.rst)和[仓库 README](https://github.com/ros-industrial/industrial_ci)。

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
Easy continuous integration repository for ROS repositories
301累计星
138Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景

按行业选型 →

工作流编排与流程自动化

适配系统:工作流引擎、流程自动化平台 · 得分 3.0

ROS-I 持续集成仓库,工业软件 CI 基础设施。

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
在客户端仓库启用 Travis CI 后,添加 .travis.yml 以克隆 industrial_ci 并运行其脚本,从而使用其 CI 配置。
特点或设计要点
脚本可覆盖一般 ROS 机器人仓库的常见检查,并允许加入自定义的前置或后置步骤。文档写明可覆盖 ROS 1 的 Indigo、Jade、Kinetic、Lunar、Melodic、Noetic 以及 ROS 2 发行版。除上述 CI 服务外,也提供 Google Cloud Build 的示例配置,并说明可改写到其他 CI。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-06-01 · 语言 Shell · 贡献者 —
cli

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 9,262 字节。

================
Industrial CI
================
.. image:: https://github.com/ros-industrial/industrial_ci/workflows/CI/badge.svg?branch=master
    :target: https://github.com/ros-industrial/industrial_ci/actions
    :alt: GitHub Actions status
.. image:: https://gitlab.com/ipa-mdl/industrial_ci/badges/master/pipeline.svg
    :target: https://gitlab.com/ipa-mdl/industrial_ci/commits/master
    :alt: Gitlab CI status
.. image:: https://img.shields.io/badge/License-Apache%202.0-blue.svg
    :target: https://opensource.org/licenses/Apache-2.0
    :alt: License

CI (Continuous Integration) configuration for `ROS` (`Robot Operating System <http://ros.org>`__).
This is the refactored version with ROS2 support, the old version can be found in the `legacy branch <https://github.com/ros-industrial/industrial_ci/tree/legacy>`__.
Please check the `migration guide <doc/migration_guide.md>`__ as well.

.. contents:: Table of Contents
   :depth: 2

Detailed documentation
========================

Other than the brief introduction in this page, you can also check `the detailed doc here <./doc/index.rst>`__.

Introduction
============

This package contains `CI (Continuous Integration) <https://en.wikipedia.org/wiki/Continuous_integration>`__ scripts that any ROS-powered packages can commonly use.
Some notable feature:

* Checks if your package builds, installs without issues. If unit/system tests are defined run them. `ROS Prerelease Test <http://wiki.ros.org/bloom/Tutorials/PrereleaseTest>`__ can optionally be run.
* Proven to cover the general requirements of the ROS-based robotics repositories. Easily configurable.
* Users can add custom pre/post processes.
* Covers ROS1 Indigo, Jade, Kinetic, Lunar, Melodic, Noetic and ROS2 distributions.
* This repo provides scripts for `Bitbucket CI`, `Gitlab CI`, `GitHub Actions` and `Travis CI` only, but it can be easily adapted for other CI services.

For a brief overall introduction, you could also check a presentation:

* `ROS-Industrial community meeting <http://rosindustrial.org/news/2016/6/14/ros-i-community-web-meeting-june-2016>`__

Quick Start
============

With a few steps, you can start in your client repository using CI confiurations stored in `industrial_ci`.

For Travis CI
--------------

1. Activate CI for your github repository on `Travis CI <https://travis-ci.com/>`__).

   a) You may do so either at https://travis-ci.com/github/YOUR_GITHUB_ORGANIZATION or at https://travis-ci.com/github/YOUR_GITHUB_USER (depending on where your repository sits).
   b) Activate CI beta for your bitbucket repository is similar, but the target link that your status badge directs to needs to be modified from https://travis-ci.com/USERNAME/REPO_NAME to https://travis-ci.com/bitbucket/USERNAME/REPO_NAME. By default, the generated link directs to a github repository.

2. Add `.travis.yml` file to your repository root (`complete template <https://github.com/ros-industrial/industrial_ci/blob/master/doc/.travis.yml>`__):

::

  language: generic
  services:
    - docker

  env:
    matrix:
      - ROS_DISTRO="indigo"

  install:
    - git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci -b master
  script:
    - .industrial_ci/travis.sh

* Note: The name `.industrial_ci` is NO longer REQUIRED for the cloned folder starting version 0.3.2; you can pick any name (recommended practice to keep the folder hidden (by prepending ".").

For Gitlab CI
-------------

1. Enable CI for your repo. Please refer to `official doc <https://docs.gitlab.com/ee/ci/quick_start/>`__ for the steps to do so. Note for Gitlab CI, necessary steps might be different between hosted version (i.e. the one on gitlab.com) v.s. the one on your own server, which Gitlab doesn't always clarify in its documentation.

   1. For your server version, enable a runner for your Gitlab project which uses the Docker executor. See instructions on how to `install <https://docs.gitlab.com/runner/install/index.html>`__ and `register <https://docs.gitlab.com/runner/register/index.html>`__ such a runner with your Gitlab instance if you haven't done so yet.

2. In `.gitlab-ci.yml` file in your client repo, add the following minimal configuration (this snippet can be the entire content of the file), replacing indigo for your chosen distro:

::

   image: docker:git
   services:
     - docker:dind
   before_script:
     - apk add --update bash coreutils tar
     - git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci .industrial_ci -b master
   indigo:
     script: .industrial_ci/gitlab.sh ROS_DISTRO=indigo


For Bitbucket Pipelines
-----------------------

1. Enable CI for your repo. Please refer to `official doc <https://confluence.atlassian.com/bitbucket/get-started-with-bitbucket-pipelines-792298921.html>`__ for the steps to do so.
2. In the `bitbucket-pipelines.yml` file in your client repo, add the following minimal configuration (this snippet can be the entire content of the file), replacing indigo for your chosen distro:

::

   image: docker:git

   pipelines:
     default:
        - step:
            services:
              - docker
            script:
              - apk add --update bash coreutils tar
              - git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci .industrial_ci -b master
              - .industrial_ci/bitbucket.sh ROS_DISTRO=indigo

   definitions:
     services:
       docker:
         memory: 2048


For GitHub Actions
-----------------------

1. Create `.github/workflows/industrial_ci_action.yml` (industrial_ci_action.yml is arbitrary, `complete template <doc/industrial_ci_action.yml>`__)  with the following configuration, (this snippet can be the entire content of the file), replacing melodic for your chosen distro:

::

   name: CI

   on: [push, pull_request]

   jobs:
     industrial_ci:
       strategy:
         matrix:
           env:
             - {ROS_DISTRO: melodic, ROS_REPO: testing}
             - {ROS_DISTRO: melodic, ROS_REPO: main}
       runs-on: ubuntu-latest
       steps:
         - uses: actions/checkout@v4
         - uses: 'ros-industrial/industrial_ci@master'
           env: ${{matrix.env}}

For Google Cloud Build
----------------------
1. Connect your source code repository to your Google Cloud Project. Please refer to the `official documentation <https://cloud.google.com/build/docs/automating-builds/create-manage-triggers#gcloud>`__ for the steps to do so.
2. In the `cloudbuild.yaml` file in your client repo, add the following minimal configuration

::

  steps:
    - name: 'ros:melodic'
      entrypoint: 'bash'
      args:
        - '-c'
        - |-
          git clone --depth 1 https://github.com/ros-industrial/industrial_ci .industrial_ci -b master
          .industrial_ci/ci.sh
      env:
        - 'ISOLATION=shell'
        - 'CI=true'

Concrete examples of config files
-------------------------------------

- A `template for Travis CI <doc/.travis.yml>`__.
- For development branch intended for ROS Indigo: `ros_canopen <https://github.com/ros-industrial/ros_canopen/blob/0a42bf181804167834b8dc3b80bfca971f24546f/.travis.yml>`__
- For development branch intended for ROS Indigo onward:
   - `example 1 <https://github.com/ros-industrial/industrial_core/blob/eeb6a470e05233d0efaaf8c32a9e4133cdcbb80b/.travis.yml>`__ (Indigo and Jade compatible).
   - `example 2 <https://github.com/ros-drivers/leap_motion/blob/954924befd2a6755f9d310f4a8b57aa526056a80/.travis.yml>`__ (Indigo, Jade, Kinetic compatible. Also runs `ROS Prerelease Test <http://wiki.ros.org/bloom/Tutorials/PrereleaseTest>`__).
- For development branch intended for ROS Kinetic: `industrial_core <https://github.com/ros-industrial/industrial_core/blob/a07f9089b0f6c8a931bab80b7fca959dd6bba05b/.travis.yml>`__
- For more complexed example: `.travis.yml <https://github.com/ros-industrial/industrial_ci/blob/d09b8dd40d7f1fa1ad5b62323a1d6b2ca836e558/.travis.yml>`__ from the same repo. You can see how options are used.
- For Gitlab CI, a small `sample config <./.gitlab-ci.yml>`__.

Metrics
========

There might not an easy way to precisely count how many repositories out there are using `industrial_ci`. Counting that number isn't even our priority at all, but we're often simply curious. Here's some ways that give us some clues for the usage metrics:

- `Searching Github repos that contain string industrial_ci <https://github.com/search?p=1&q=industrial_ci+-repo%3Aros-industrial%2Findustrial_ci&ref=searchresults&type=Code&utf8=%E2%9C%93>`__) (with some duplicates. Excluding industrial_ci repo):

  - 1,841 (Jan 2, 2019)
  - 675 (May 15, 2018)
  - 457 (Dec 12, 2017)
  - 142 (Jan 20, 2017)

- Github--> `Graphs` --> `Traffic` view (visible only to admins).

  - Dec 30, 2018

  .. figure:: http://ros-industrial.github.io/industrial_ci/images/industrial_ci_traffic_20181230.png

  - May 15, 2018

  .. figure:: http://ros-industrial.github.io/industrial_ci/images/industrial_ci_20180515_traffic.png

  - Dec 12, 2017

  .. figure:: http://ros-industrial.github.io/industrial_ci/images/industrial_ci_traffic_20171212.png

  - Jan 20, 2017

  .. figure:: http://ros-industrial.github.io/industrial_ci/images/industrial_ci_traffic_20170120.png

EoF
↑