Skip to content
Snippets Groups Projects
Commit c1bbd6eb authored by Fabian Bircher's avatar Fabian Bircher
Browse files

Issue #3395962 by bircher: Enable gitlab ci

parent b3c395b3
No related branches found
No related tags found
No related merge requests found
Pipeline #36381 failed
......@@ -4,19 +4,15 @@ docker-relay:
version: 0.1.0
drush:
container: drupal
container: web
cmd: 'vendor/bin/drush'
user: 1000
composer:
container: drupal
container: web
cmd: composer
user: 1000
# This is a hack and will be done differently in future versions of docker-relay.
exec: ['docker-compose', 'run', '--rm', '-u', '1000', 'drupal', 'composer']
php:
container: drupal
container: web
path: '.'
cmd: php
user: 1000
[PHP]
variables_order = GPCS
error_reporting = E_ALL
date.timezone = "UTC"
sendmail_path = "true"
# This file is for customizing the Docker environment which is used to develop
# Devel. If you are just using Devel on a site, you may ignore this file
# and docker-compose.yml.
# Uncomment to change versions of php and DBs and OS.
# POSTGRES_TAG=10.5
# MARIADB_TAG=10.3
# PHP_TAG=7.3-dev
# Uncomment to run tests against a different DB. Defaults to mysql.
# SIMPLETEST_DB=sqlite://localhost/sites/default/files/.sqlite
# SIMPLETEST_DB=mysql://root:password@mariadb/db
# SIMPLETEST_DB=pgsql://root:password@postgres/db
# XDebug defaults to Off in the php container.
# Uncomment to enable XDebug. See https://wodby.com/docs/1.0/stacks/drupal/local/#xdebug.
# When Xdebug first successfully connects back to PHPStorm, you are prompted to create a Server called devel
# Then you are prompted to add path mappings (its mandatory).
# PHP_XDEBUG=0
# PHP_XDEBUG_DEFAULT_ENABLE=0
# PHP_IDE_CONFIG=serverName=devel
# PHP_XDEBUG_REMOTE_HOST=host.docker.internal
# PHP_XDEBUG_REMOTE_CONNECT_BACK=0
################
# DrupalCI GitLabCI template
#
# Gitlab-ci.yml to replicate DrupalCI testing for Contrib
#
# With thanks to:
# * The GitLab Acceleration Initiative participants
# * DrupalSpoons
################
################
# Guidelines
#
# This template is designed to give any Contrib maintainer everything they need to test, without requiring modification. It is also designed to keep up to date with Core Development automatically through the use of include files that can be centrally maintained.
#
# However, you can modify this template if you have additional needs for your project.
################
################
# Includes
#
# Additional configuration can be provided through includes.
# One advantage of include files is that if they are updated upstream, the changes affect all pipelines using that include.
#
# Includes can be overridden by re-declaring anything provided in an include, here in gitlab-ci.yml
# https://docs.gitlab.com/ee/ci/yaml/includes.html#override-included-configuration-values
################
include:
- remote: 'https://gitlab.com/drupalspoons/composer-plugin/-/raw/2.9.7/templates/.gitlab-ci.yml'
################
# DrupalCI includes:
# As long as you include this, any future includes added by the Drupal Association will be accessible to your pipelines automatically.
# View these include files at https://git.drupalcode.org/project/gitlab_templates/
################
- project: $_GITLAB_TEMPLATES_REPO
ref: $_GITLAB_TEMPLATES_REF
file:
- '/includes/include.drupalci.main.yml'
# EXPERIMENTAL: For Drupal 7, remove the above line and uncomment the below.
# - '/includes/include.drupalci.main-d7.yml'
- '/includes/include.drupalci.variables.yml'
- '/includes/include.drupalci.workflows.yml'
################
# Pipeline configuration variables
#
# These are the variables provided to the Run Pipeline form that a user may want to override.
#
# Docs at https://git.drupalcode.org/project/gitlab_templates/-/blob/1.0.x/includes/include.drupalci.variables.yml
################
variables:
SKIP_ESLINT: '1'
###################################################################################
#
# *
# /(
# ((((,
# /(((((((
# ((((((((((*
# ,(((((((((((((((
# ,(((((((((((((((((((
# ((((((((((((((((((((((((*
# *(((((((((((((((((((((((((((((
# ((((((((((((((((((((((((((((((((((*
# *(((((((((((((((((( .((((((((((((((((((
# ((((((((((((((((((. /(((((((((((((((((*
# /((((((((((((((((( .(((((((((((((((((,
# ,(((((((((((((((((( ((((((((((((((((((
# .(((((((((((((((((((( .(((((((((((((((((
# ((((((((((((((((((((((( ((((((((((((((((/
# (((((((((((((((((((((((((((/ ,(((((((((((((((*
# .((((((((((((((/ /(((((((((((((. ,(((((((((((((((
# *(((((((((((((( ,(((((((((((((/ *((((((((((((((.
# ((((((((((((((, /(((((((((((((. ((((((((((((((,
# (((((((((((((/ ,(((((((((((((* ,(((((((((((((,
# *((((((((((((( .((((((((((((((( ,(((((((((((((
# ((((((((((((/ /((((((((((((((((((. ,((((((((((((/
# ((((((((((((( *(((((((((((((((((((((((* *((((((((((((
# ((((((((((((( ,(((((((((((((..((((((((((((( *((((((((((((
# ((((((((((((, /((((((((((((* /((((((((((((/ ((((((((((((
# ((((((((((((( /((((((((((((/ (((((((((((((* ((((((((((((
# (((((((((((((/ /(((((((((((( ,((((((((((((, *((((((((((((
# (((((((((((((( *(((((((((((/ *((((((((((((. ((((((((((((/
# *((((((((((((((((((((((((((, /(((((((((((((((((((((((((
# ((((((((((((((((((((((((( ((((((((((((((((((((((((,
# .(((((((((((((((((((((((/ ,(((((((((((((((((((((((
# ((((((((((((((((((((((/ ,(((((((((((((((((((((/
# *((((((((((((((((((((( (((((((((((((((((((((,
# ,(((((((((((((((((((((, ((((((((((((((((((((/
# ,(((((((((((((((((((((* /((((((((((((((((((((
# ((((((((((((((((((((((, ,/((((((((((((((((((((,
# ,(((((((((((((((((((((((((((((((((((((((((((((((((((
# .(((((((((((((((((((((((((((((((((((((((((((((
# .((((((((((((((((((((((((((((((((((((,.
# .,(((((((((((((((((((((((((.
#
###################################################################################
version: "3.1"
services:
# More info at https://github.com/wodby/php
drupal:
image: wodby/php:${PHP_TAG-8.1-dev}
command: composer webserver
environment:
# We set the composer variable so that composer uses the dev file. The drupal CI can not deal with having drupal as a dev-dependency.
COMPOSER: composer.spoons.json
PHP_SENDMAIL_PATH: /dev/null
COLUMNS: ${COLUMNS-80} # Set 80 columns for docker exec -it.
## Read instructions at https://wodby.com/docs/stacks/drupal/local/#debugging-cli-requests
# The line below is commented out because the mere presence of that env variable loads XDebug regardless of the value.
# Enable XDebug when you `up` your container: PHP_XDEBUG=1 docker-compose up -d
# PHP_XDEBUG:
PHP_XDEBUG_DEFAULT_ENABLE:
PHP_IDE_CONFIG:
PHP_XDEBUG_REMOTE_HOST:
PHP_XDEBUG_REMOTE_CONNECT_BACK:
# Specify 'drupal' instead of 127.0.0.1 so that chrome service can reach it.
SIMPLETEST_BASE_URL: http://drupal:8888
SIMPLETEST_DB:
volumes:
- ./:/var/www/html:cached
- ./.docker/zz-php.ini:/usr/local/etc/php/conf.d/zz-php.ini
# ports:
# - '${WEB_PORT-8889}:8888'
# More info at https://github.com/wodby/mariadb
mariadb:
image: wodby/mariadb:${MARIADB_TAG-10.3}
stop_grace_period: 30s
environment:
MYSQL_ROOT_PASSWORD: password
# volumes:
# - mariadb-datavolume:/var/lib/mysql
# ports:
# - '3005:3306'
# More info at https://github.com/wodby/postgres
# postgres:
# image: wodby/postgres:${POSTGRES_TAG-10.5}
# stop_grace_period: 30s
# environment:
# POSTGRES_PASSWORD: password
# POSTGRES_DB: db
# POSTGRES_USER: root
# volumes:
# - postgres-datavolume:/var/lib/postgresql/data
# ports:
# - '5532:5432'
# https://gorannikolovski.com/blog/docker4drupal-and-functional-javascript-tests
# chrome:
# image: drupalci/webdriver-chromedriver:production
# ulimits:
# core:
# soft: -1
# hard: -1
# cap_add:
# - SYS_ADMIN
# volumes:
# - /dev/shm:/dev/shm
# entrypoint:
# - chromedriver
# - "--no-sandbox"
# - "--log-path=/tmp/chromedriver.log"
# - "--verbose"
# - "--whitelisted-ips="
#data volumes https://docs.docker.com/storage/volumes/
#volumes:
# mariadb-datavolume:
# postgres-datavolume:
......@@ -16,9 +16,9 @@
<!-- Do not limit the amount of memory tests take to run. -->
<ini name="memory_limit" value="-1"/>
<!-- Example SIMPLETEST_BASE_URL value: http://localhost -->
<env name="SIMPLETEST_BASE_URL" value="http://drupal:8888"/>
<!-- <env name="SIMPLETEST_BASE_URL" value="http://drupal:8888"/>-->
<!-- Example SIMPLETEST_DB value: mysql://username:password@localhost/databasename#table_prefix -->
<env name="SIMPLETEST_DB" value="mysql://root:password@mariadb/db"/>
<env name="SIMPLETEST_DB" value="mysql://db:db@db/db"/>
<!-- Example BROWSERTEST_OUTPUT_DIRECTORY value: /path/to/webroot/sites/simpletest/browser_output -->
<env name="BROWSERTEST_OUTPUT_DIRECTORY" value="/tmp"/>
<!-- To have browsertest output use an alternative base URL. For example if
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment