Skip to content

xima-media/gitlab-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitlab Templates

Collection of reusable GitLab steps.

include:
  - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.6.0/.deploy-prepare.yml'
  - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.6.0/build-php.yml'
  - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.6.0/build-node.yml'
  - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.6.0/test-composer-normalize.yml'
  - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.6.0/test-editorconfig-lint'
  - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.6.0/test-composer-sitepackage.yml'
  - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.6.0/test-es-lint.yml'
  - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.6.0/test-language-lint'
  - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.6.0/test-html-lint.yml'
  - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.6.0/test-php-lint.yml'
  - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.6.0/test-php-cs-fixer.yml'
  - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.6.0/test-php-stan.yml'
  - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.6.0/test-php-unit.yml'
  - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.6.0/test-php-functional.yml'
  - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.6.0/test-typoscript-lint.yml'
  - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.6.0/test-yaml-lint.yml'
  - remote: 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.6.0/deploy.yml'
    inputs:
      ci_server_url: https://git.example.com
      live_environment_url: 'https://example.com/'
      test_environment_url: 'https://test.example.com/'

Available jobs by stages

  • [No stage]

    • .deploy-prepare.yml
  • build

    • build-php
    • build-php-no-dev
    • build-php-v11
    • build-node ⚠️ needs configuration
    • reset-upload-live
    • reset-host
  • test

    • test-composer-normalize
    • test-editorconfig-lint
    • test-composer-sitepackage ⚠️ needs configuration
    • test-es-lint ⚠️ needs configuration
    • test-html-lint ⚠️ needs configuration
    • test-language-lint
    • test-php-lint
    • test-php-cs-fixer
    • test-php-stan
    • test-php-unit
    • test-php-functional
    • test-typoscript-lint
    • test-xml-lint ⛔️ deprecated
    • test-yaml-lint
  • docker.build

  • deploy.dev

  • test.dev

  • deploy.test

    • deploy-test
  • test.test

  • release

  • deploy.live

    • deploy-live
  • test.live

Configure jobs

build-php

You can set custom options for the composer install command via environment variable:

variables:
  COMPOSER_INSTALL_OPTIONS: "--ignore-platform-req=ext-ldap"

include:
  - 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/build-php.yml'

test-composer-sitepackage

Add this to your .gitlab-ci.yml and configure the path of the composer.json of your sitepackage:

test-composer-sitepackage:
  script:
    - php sitepackage-req-checker.php packages/sitepackage_name/composer.json --ci=sitepackage-req-checker-report.xml

build-node

Add this to your .gitlab-ci.yml to configure the node version and asset paths:

build-node:
  image:
    name: node:18.17.1-slim
  artifacts:
    paths:
      - packages/xm_dkfz_net_site/Resources/Public/Css/dist
      - packages/xm_dkfz_net_site/Resources/Public/JavaScript/dist

test-es-lint

Add this to your .gitlab-ci.yml to configure the node version:

test-es-lint:
  image:
    name: node:18.17.1-slim

test-html-lint

Add this to your .gitlab-ci.yml to configure the node version:

test-html-lint:
  image:
    name: node:18.17.1-slim

Configure schedules

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •