Skip to content
Snippets Groups Projects
Commit 7c8da966 authored by Stephan Zeidler's avatar Stephan Zeidler
Browse files

Issue #3465676 by szeidler: Add GitlabCI

parent f77a7d3c
Branches 8.x-1.x
1 merge request!2Issue #3465676: Add Gitlab CI
Pipeline #242783 passed with warnings
################
# GitLabCI template for Drupal projects.
#
# 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.
# As long as you include the project, ref and three files below, any future updates added by the Drupal Association will be used in your
# pipelines automatically. However, you can modify this template if you have additional needs for your project.
# The full documentation is on https://project.pages.drupalcode.org/gitlab_templates/
################
# For information on alternative values for 'ref' see https://project.pages.drupalcode.org/gitlab_templates/info/templates-version/
# To test a Drupal 7 project, change the first include filename from .main.yml to .main-d7.yml
include:
- project: $_GITLAB_TEMPLATES_REPO
ref: $_GITLAB_TEMPLATES_REF
file:
- "/includes/include.drupalci.main.yml"
- "/includes/include.drupalci.variables.yml"
- "/includes/include.drupalci.workflows.yml"
################
# Pipeline configuration variables are defined with default values and descriptions in the file
# https://git.drupalcode.org/project/gitlab_templates/-/blob/main/includes/include.drupalci.variables.yml
# Uncomment the lines below if you want to override any of the variables. The following is just an example.
################
variables:
# SKIP_ESLINT: '1'
OPT_IN_TEST_NEXT_MAJOR: '1'
# _CURL_TEMPLATES_REF: 'main'
......@@ -6,24 +6,24 @@ adnuntius.settings:
type: sequence
label: 'Adnuntius Ad Units'
sequence:
- type: mapping
label: 'Mapping'
mapping:
label:
type: string
label: 'Ad Unit Label'
auid:
type: string
label: 'Ad Unit Id'
width:
type: integer
label: 'Width of the ad unit'
height:
type: integer
label: 'Height of the ad unit'
weight:
type: integer
label: 'Weight of the ad unit'
type: mapping
label: 'Mapping'
mapping:
label:
type: string
label: 'Ad Unit Label'
auid:
type: string
label: 'Ad Unit Id'
width:
type: integer
label: 'Width of the ad unit'
height:
type: integer
label: 'Height of the ad unit'
weight:
type: integer
label: 'Weight of the ad unit'
block.settings.adnuntius_block:
type: block_settings
......
......@@ -2,9 +2,6 @@
namespace Drupal\Tests\adnuntius\FunctionalJavascript;
use Drupal\Core\Entity\Entity\EntityFormDisplay;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
use Drupal\Tests\adnuntius\Traits\AdUnitTrait;
......@@ -84,7 +81,7 @@ class AdnuntiusBlockJavascriptTest extends WebDriverTestBase {
];
$this->drupalGet('admin/structure/block/manage/adnuntiusblock');
$this->submitForm($edit, 'Save block');
$this->assertSession()->elementContains('css', '#adn-' . $ad_unit['auid'] . ' + script + script', 'container: \'div\'');
$this->assertSession()->elementContains('css', '#adn-' . $ad_unit['auid'] . ' + script', 'container: \'div\'');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment