Collection of reusable GitLab steps.
include:
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/.deploy-prepare.yml'
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/build-php.yml'
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/build-node.yml'
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-composer-normalize.yml'
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-editorconfig-lint'
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-composer-sitepackage.yml'
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-es-lint.yml'
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-language-lint'
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-html-lint.yml'
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-php-lint.yml'
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-php-cs-fixer.yml'
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-php-stan.yml'
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-php-unit.yml'
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-php-functional.yml'
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-typoscript-lint.yml'
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-xml-lint.yml'
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-yaml-lint.yml'.deploy-prepare.yml
build-phpbuild-php-v11build-node⚠️ needs configuration
test-composer-normalizetest-editorconfig-linttest-composer-sitepackage⚠️ needs configurationtest-es-lint⚠️ needs configurationtest-html-lint⚠️ needs configurationtest-language-linttest-php-linttest-php-cs-fixertest-php-stantest-php-unittest-php-functionaltest-typoscript-linttest-xml-linttest-yaml-lint
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'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.xmlAdd 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/distAdd this to your .gitlab-ci.yml to configure the node version:
test-es-lint:
image:
name: node:18.17.1-slimAdd this to your .gitlab-ci.yml to configure the node version:
test-html-lint:
image:
name: node:18.17.1-slim