{"id":15173102,"url":"https://gitlab.com/mog33/gitlab-ci-drupal","last_synced_at":"2025-04-09T18:18:35.135Z","repository":{"id":61210051,"uuid":"7166828","full_name":"mog33/gitlab-ci-drupal","owner":"mog33","description":"Gitlab CI integration for Drupal 10+ project or module: tests, code quality, linting, metrics and deploy.","archived":false,"fork":false,"pushed_at":null,"size":null,"stargazers_count":63,"open_issues_count":2,"forks_count":21,"subscribers_count":null,"default_branch":"4.x-dev","last_synced_at":"2025-04-09T18:18:31.781Z","etag":null,"topics":["#Drupal10","behat","drupal10","gitlab-ci","nightwatch.js","phpunit"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://gitlab.com/uploads/-/system/project/avatar/7166828/drupal-gitlab_sm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-21T04:09:42.791Z","updated_at":"2024-10-03T10:52:00.846Z","dependencies_parsed_at":"2022-10-12T20:17:46.294Z","dependency_job_id":null,"html_url":"https://gitlab.com/mog33/gitlab-ci-drupal","commit_stats":null,"previous_names":[],"tags_count":9,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/mog33%2Fgitlab-ci-drupal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/mog33%2Fgitlab-ci-drupal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/mog33%2Fgitlab-ci-drupal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/mog33%2Fgitlab-ci-drupal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/owners/mog33","download_url":"https://gitlab.com/mog33/gitlab-ci-drupal/-/archive/4.x-dev/gitlab-ci-drupal-4.x-dev.zip","host":{"name":"gitlab.com","url":"https://gitlab.com","kind":"gitlab","repositories_count":4518607,"owners_count":6922,"icon_url":"https://github.com/gitlab.png","version":null,"created_at":"2022-05-30T11:31:42.605Z","updated_at":"2024-07-18T11:24:13.055Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/owners"}},"keywords":["#Drupal10","behat","drupal10","gitlab-ci","nightwatch.js","phpunit"],"created_at":"2024-09-27T10:41:08.677Z","updated_at":"2025-04-09T18:18:35.107Z","avatar_url":"https://gitlab.com/uploads/-/system/project/avatar/7166828/drupal-gitlab_sm.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gitlab CI for Drupal 9 / 10\n\n\u003cimg src=\"https://www.drupal.org/files/druplicon-small.png\" width=\"175\" style=\"margin-right:10%;\"\u003e\n\u003cimg src=\"https://about.gitlab.com/images/ci/gitlab-ci-cd-logo_2x.png\" width=\"175\"\u003e\n\n[Gitlab CI](https://docs.gitlab.com/ee/ci/README.html) for a\n[Drupal](https://www.drupal.org) module / theme or full project.\n\nInclude **Build**, **Testing**, **Code quality**, **Metrics** and more...\n\nFor any **issue**, please use the [Gitlab-CI project page](https://gitlab.com/mog33/gitlab-ci-drupal/-/issues)\n\nBased on an include behavior, ie you don't have to copy all files from this project.\n\n## Prerequisites\n\n- Gitlab CI with a [runner that support docker](https://docs.gitlab.com/runner/)\n- Minimal understanding of [Gitlab CI](https://about.gitlab.com/stages-devops-lifecycle/continuous-integration/)\nand [Gitlab CI Yaml](https://docs.gitlab.com/ee/ci/yaml)\n\n## Documentation\n\n- [Documentation for GitLab CI Drupal](https://mog33.gitlab.io/gitlab-ci-drupal)\n\n## Quick setup\n\n### Quick setup for a Drupal module / theme\n\nPush your module / theme to a Gitlab with CI and runners enabled.\n\n[Gitlab.com](https://gitlab.com) offer some CI pipeline minutes/month on free accounts.\n\n- Copy [starter.gitlab-ci.yml](https://gitlab.com/mog33/gitlab-ci-drupal/-/raw/4.x-dev/starter.gitlab-ci.yml)\nfile as a `.gitlab-ci.yml` at the root of your Drupal module or theme\n(same level as `my_module_or_theme.info.yml` file).\n- If your project is not on [Gitlab.com](https://gitlab.com), edit the `include` section et the beginning.\n- Edit the `variables` and uncomment the section under `Override default variables for a module`\n- Create and push your branch, see the pipeline running for basic code standard and lint.\n\nExternal [module demo](https://gitlab.com/gitlab-ci-drupal/demo-gitlab-ci-drupal-module), real module example [Content moderation edit notify](https://gitlab.com/mog33/content_moderation_edit_notify)\n\nFor more option and details see the [full documentation](https://mog33.gitlab.io/gitlab-ci-drupal).\n\n### Quick setup for a full Drupal project\n\nPush your project to a Gitlab with CI and runners enabled.\n\n[Gitlab.com](https://gitlab.com) offer some CI pipeline minutes/month on free accounts.\n\nAssuming your project include a `composer.json` file from the\n[Drupal project](https://www.drupal.org/docs/develop/using-composer/using-composer-to-install-drupal-and-manage-dependencies).\n\n- Copy [starter.gitlab-ci.yml](https://gitlab.com/mog33/gitlab-ci-drupal/-/raw/4.x-dev/starter.gitlab-ci.yml) file as a `.gitlab-ci.yml` in your project\n- If you are using _Behat_ you must add your tests in a `behat_tests` folders at the root of your Drupal project (same level as `composer.json` file).\n  - As a starting point you can look in the [behat_tests](./behat_tests) folder of this project.\n- Put your custom code in the `web/modules/custom` and `web/themes/custom` folders of your project.\n- Create and push your branch, see the pipeline running for basic code standard, lint, tests and metrics.\n\nExternal [project demo](https://gitlab.com/gitlab-ci-drupal/demo-gitlab-ci-drupal-project).\n\nAs an example you can check my project on a Drupal template:\n[Drupal project advanced template](https://gitlab.com/mog33/drupal-composer-advanced-template)\n\nFor more option and details see the [full documentation](https://mog33.gitlab.io/gitlab-ci-drupal).\n\n----\n\nWant some help implementing this on your project? I provide Drupal expertise\nas a freelance, just [contact me](https://developpeur-drupal.com/en).\n\nIf you want to support this project, you can:\n\n- [\u003cimg src=\"https://www.drupal.org/files/images/buy_me_a_coffee.png\"\u003e](https://bit.ly/34jPKcE)\n- Hire me as a freelance for any Drupal related work\n- Promote me to any company looking for any Drupal related work\n- Help me with testing / documentation / grammar fixes / use cases\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/gitlab.com%2Fmog33%2Fgitlab-ci-drupal","html_url":"https://awesome.ecosyste.ms/projects/gitlab.com%2Fmog33%2Fgitlab-ci-drupal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/gitlab.com%2Fmog33%2Fgitlab-ci-drupal/lists"}