Review the documentation page on GitLab CI to get started.

If you have questions or feedback, join us in the #gitlab channel on Drupal Slack.

General Availability of GitLab CI

Roadmap

Blockers

Major follow-ups
Test Support

Variables include file:

  • Review the variables include file to make sure that it is up to date with the current environment requirements of Drupal
  • Set a schedule to review the variables include file for any changes in new releases (or just policy changes)

Workflow include file:

Infra & Maintenance

  • Set up some temporary limits to protect GitLab CI from overuse
  • Set up usage monitoring and alerting for individual project CI usage

Limitations of GitLab CI

  • Unlike Drupal CI, results of GitLab CI are not posted on issues on Drupal.org. GitLab makes results available on the merge request page.
  • Templates or Drupal-specific configurations are work in progress. E.g. Drupal 7 support is not yet ready and will be worked on in #3343810: Support for testing Contrib Drupal 7 with the template. We appreciate your feedback via Drupal Slack or or issues/MRs for the GitLab Templates project.

Projects that are opted in

We are currently accepting new projects for opt-in.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

    Comments

    irinaz created an issue. See original summary.

    irinaz’s picture

    Issue summary: View changes
    irinaz’s picture

    Issue summary: View changes
    irinaz’s picture

    Status: Fixed » Active
    irinaz’s picture

    Issue summary: View changes
    damienmckenna’s picture

    Is it possible that projects would be able to opt into test coverage without adding the file, that a systemwide default file could be used if one isn't present?

    irinaz’s picture

    @DamienMcKenna, I do not think that this feature is available in alpha.

    drumm’s picture

    No, GitLab CI is not centralized like DrupalCI. A maintainer has to commit their .gitlab-ci.yml file. In the future, templates may reduce what needs to be in that file, but its existence is necessary. We have not made commits on maintainers’ behalf, other than the Great Git Migration, which was required for technical differences from CVS.

    damienmckenna’s picture

    Good to know, thanks for the explanation, drumm.

    Has anyone compiled a list of limitations yet? For example, is it possible to run multiple test pipelines with different releases of core, PHP and MySQL?

    irinaz’s picture

    Issue summary: View changes
    irinaz’s picture

    Issue summary: View changes
    irinaz’s picture

    Issue summary: View changes
    irinaz’s picture

    Issue summary: View changes
    chr.fritsch’s picture

    Would like to use gitlab ci on the select2 project as soon as the next round starts. Thx

    bhanu951’s picture

    Would like to test Gitlab CI on the https://www.drupal.org/sandbox/bhanu951/3103712 project as soon as the next round starts. Thanks.

    saschaeggi’s picture

    As we successfully run GitLab CI on Gin Admin Theme now, I'd also like to opt in for it's modules, https://www.drupal.org/project/gin_toolbar & https://www.drupal.org/project/gin_login
    TY!

    wim leers’s picture

    I'd like to opt in with https://www.drupal.org/project/cdn :)

    drumm’s picture

    Bhanu951 - sandbox projects will likely never have GitLab CI available, #3204605: Phase out sandbox projects

    hestenet’s picture

    Noting here, had a great conversation with @karinG about drupal.org/project/webform_civicrm opting in - they have already fully adopted github actions and other pipelines and would love to port it over to our official solution, and help us test this out.

    drumm’s picture

    Issue summary: View changes

    Updating list of projects with GitLab CI enabled.

    alexpott’s picture

    I'd like to opt https://www.drupal.org/project/distributions_recipes in. It's going to need to run a small subset of core tests against that project's 10.x branch.

    hestenet’s picture

    Issue summary: View changes
    bhanu951’s picture

    I'd like to opt in with https://git.drupalcode.org/project/omdb_api . Thanks.

    drumm’s picture

    https://www.drupal.org/project/distributions_recipes is a general project, all general projects have GitLab CI available automatically.

    drumm’s picture

    Issue summary: View changes

    omdb_api now has GitLab CI enabled.

    irinaz’s picture

    Hello All,
    Please review your .gitlab-ci.yml for possible deprecations for Gitlab 15

    spleshka’s picture

    Hello, can we get https://www.drupal.org/project/anu_lms enrolled into GitLab CI as well please? This is what keeps the project still on Github instead of Drupal.org. Thanks :)

    lauriii’s picture

    Would it be possible to enable Gitlab CI on https://www.drupal.org/project/next_webform?

    drumm’s picture

    Issue summary: View changes

    next_webform is a general project. All general projects have GitLab CI enabled.

    anu_lms now has GitLab CI enabled.

    xurizaemon’s picture

    Please add the following projects to opt in:

    - https://www.drupal.org/project/migrate_visualize
    - https://www.drupal.org/project/advancedform

    Thanks!

    PS. I had to go look up "general project" as I hadn't heard the term before. For anyone else wondering:

    A general project is anything that is not a module, theme, or other more-specific project type that is managed on Drupal.org.

    drumm’s picture

    Issue summary: View changes

    migrate_visualize & advancedform now have GitLab CI enabled.

    jonnyeom’s picture

    I'd like to opt in for the file_delete module.

    https://www.drupal.org/project/file_delete

    Thanks!

    grimreaper’s picture

    Hello,

    I would like to opt-in for File Extractor https://www.drupal.org/project/file_extractor please.

    Thanks!

    drumm’s picture

    Issue summary: View changes

    file_delete & file_extractor now have GitLab CI enabled

    lussoluca’s picture

    Can you please add https://www.drupal.org/project/webprofiler ?

    Thanks!

    spleshka’s picture

    Can we opt-in https://www.drupal.org/project/material_base please? We would like to use Gitlab pages for automated building of the documentation from md files inside the repo.

    drumm’s picture

    Issue summary: View changes

    webprofiler, lightning_core, lightning_api, lightning_media, lightning_workflow, lightning_layout & material_base now have GitLab CI enabled.

    chr.fritsch’s picture

    paragraphs_features would also like to use the Gitlab CI

    drumm’s picture

    Issue summary: View changes
    kingdutch’s picture

    yoast_seo would also like to use the GitLab CI

    christianadamski’s picture

    finn lewis’s picture

    Happy New Year wonderful people!

    We would love to test the CI for our LocalGov Drupal distributions, in the hope that we can move active development back from Github to drupal.org with automated tests and code review etc.

    The two main projects are:

    https://www.drupal.org/project/localgov
    https://www.drupal.org/project/localgov_microsites

    Many thanks!

    Finn

    drumm’s picture

    Issue summary: View changes

    yoast_seo, geolocation, localgov & localgov_microsites now have GitLab CI enabled.

    hestenet’s picture

    bradjones1’s picture

    Requesting to opt-in redis module.

    Needs two php extensions installed to connect to a redis container.

    @berdir is a maintainer and is OK with it. See https://drupal.slack.com/archives/C1BMUQ9U6/p1674582990176319?thread_ts=...

    drumm’s picture

    jungle’s picture

    Request to opt-in https://www.drupal.org/project/examples thanks!

    moshe weitzman’s picture

    Akamai module needs to opt in as its Composer setup can't work on DrupalCI. This is needed for D10 support. See https://www.drupal.org/project/akamai/issues/3337078#comment-14968641. Thanks.

    cmlara’s picture

    I'd like to spend some time working on evaluating how phpstan, code coverage reporting, and possibly pipeline triggers can be integrated into the current template workflows, to that end can I opt in the Vault module and its related ecosystem modules:

    (mostly have the first two already working in a local lab, though would be good to test on the real D.O. environment and work with updating the templates to make it easier)

    https://www.drupal.org/project/vault
    https://www.drupal.org/project/vault_auth_approle
    https://www.drupal.org/project/vault_key_aws
    https://www.drupal.org/project/vault_key_kv
    https://www.drupal.org/project/vault_auth_token
    https://www.drupal.org/project/encrypt_vault_transit

    moshe weitzman’s picture

    drumm’s picture

    Issue summary: View changes
    drumm’s picture

    Issue summary: View changes

    commerce_availability_notification, commerce_logistra, commerce_item_discount_ui & commerce_vipps now have GitLab CI enabled.

    jonathan1055’s picture

    Request to opt-in Scheduler https://www.drupal.org/project/scheduler
    Thanks

    drumm’s picture

    Issue summary: View changes

    scheduler now has GitLab CI enabled.

    markdorison’s picture

    Could you please opt-in https://www.drupal.org/project/youtube? Thank you!

    drumm’s picture

    Issue summary: View changes

    https://www.drupal.org/project/youtube now has GitLab CI enabled.

    dww’s picture

    drumm’s picture

    Issue summary: View changes
    ayalon’s picture

    @drumm
    We would love to have Gitlab CI enabled for our project:
    https://www.drupal.org/project/graphql_core_schema

    We plan to automatically build the documentation on Netlify.

    mkalkbrenner’s picture

    I want to use Gitlab CI for https://www.drupal.org/project/search_api_solr to replace our github Actions workaround.

    drumm’s picture

    hestenet’s picture

    Issue summary: View changes
    feyp’s picture

    Issue summary: View changes

    There was still one more reference to the closed alpha, so I took the liberty to make some more adjustments to the IS.

    hestenet’s picture

    Issue summary: View changes
    hestenet’s picture

    Issue summary: View changes
    naveenvalecha’s picture

    hestenet’s picture

    Issue summary: View changes
    hestenet’s picture

    Issue summary: View changes

    • drumm committed 8d00d840 on main
      Issue #3261803: Check that full projects have CI enabled
      

    • drumm committed 3449dd17 on main
      Issue #3261803: Flip full/sandbox condition, general projects do not...
    drumm’s picture

    Issue summary: View changes

    All full projects on Drupal.org can now use GitLab CI!

    tanc’s picture

    All full projects on Drupal.org can now use GitLab CI!

    Can you explain how to activate it? I've added a .gitlab-ci.yml file in an open issue fork on a full project. The yml validates when checked in the Pipeline Editor in gitlab but when trying to run it with the "Validate" tab I see "Pipelines are disabled!". I also don't see a CI tab on the left menu anywhere. According to the docs page it says:

    When you first commit your .gitlab-ci.yml file the pipeline should be triggered automatically.

    1. Navigate to the sidebar
    2. Click on 'CI/CD'
    3. Click on 'Pipelines'

    I don't see CI/CD anywhere or Pipelines in the sidebar.

    drumm’s picture

    The .gitlab-ci.yml file needs to be committed to the project to be active

    hongpong’s picture

    FYI it appears that GitlabCI pipelines can be activated on issue fork repos. However I had to push .gitlab-ci.yml to the 'main' / default branch, rather than the issue branch within the issue fork repo, before it would 'see' that gitlabCI should be available. After that it works fine.

    drumm’s picture

    Status: Active » Fixed

    I believe we can call this done now. Thanks everyone!

    Status: Fixed » Closed (fixed)

    Automatically closed - issue fixed for 2 weeks with no activity.