Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Docker for Drupal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Composer
plugin
Docker for Drupal
Commits
4cd83280
Commit
4cd83280
authored
2 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Integrate Cypress testing
parent
1b7e6f48
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!39
Merging develop into main
Pipeline
#628627
passed
2 years ago
Stage: test
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.ahoy.l3d.yml
+4
-0
4 additions, 0 deletions
.ahoy.l3d.yml
ahoy.cypress.yml
+19
-0
19 additions, 0 deletions
ahoy.cypress.yml
src/Handler.php
+4
-0
4 additions, 0 deletions
src/Handler.php
templates/docker-compose.yml.twig
+19
-0
19 additions, 0 deletions
templates/docker-compose.yml.twig
with
46 additions
and
0 deletions
.ahoy.l3d.yml
+
4
−
0
View file @
4cd83280
...
...
@@ -20,3 +20,7 @@ commands:
imports
:
-
ahoy.traefik.yml
usage
:
Traefik commands
cypress
:
imports
:
-
ahoy.cypress.yml
usage
:
Cypress
This diff is collapsed.
Click to expand it.
ahoy.cypress.yml
0 → 100644
+
19
−
0
View file @
4cd83280
ahoyapi
:
v2
commands
:
on
:
cmd
:
|
CYPRESS=1
echo "CYPRESS=1" >>.env
env -i $(cat .env | xargs) >.env
composer lakedrops:docker4drupal --no-interaction
ahoy d4d up cypress
usage
:
Turn on Cypress
off
:
cmd
:
|
CYPRESS=0
echo "CYPRESS=0" >>.env
env -i $(cat .env | xargs) >.env
composer lakedrops:docker4drupal --no-interaction
echo "You may have to close the Cypress window manually"
ahoy d4d stop cypress
usage
:
Turn off Cypress
This diff is collapsed.
Click to expand it.
src/Handler.php
+
4
−
0
View file @
4cd83280
...
...
@@ -184,6 +184,10 @@ class Handler extends BaseHandler {
'yearly'
=>
30
,
],
],
'cypress'
=>
[
'enable'
=>
$this
->
env
->
receiveGlobal
(
'CYPRESS'
,
'Cypress'
,
'0'
),
'version'
=>
'10.8.0'
,
],
];
}
...
...
This diff is collapsed.
Click to expand it.
templates/docker-compose.yml.twig
+
19
−
0
View file @
4cd83280
...
...
@@ -520,3 +520,22 @@ services:
env_file: ../backup/.env
{%
endif
%}
{%
endif
%}
{%
if
cypress.enable
|
default
(
0
)
%}
cypress:
image: 'cypress/included:
{{
cypress.version
}}
'
environment:
- CYPRESS_baseUrl=
{{
projectprotocol
}}
://
{{
projectdomain
}}{{
projectport
}}
{%
if
not
drupal.live
|
default
(
0
)
%}
- DISPLAY=:0
network_mode: host
{%
endif
%}
working_dir: '/e2e'
volumes:
-
{{
projectroot
}}
/tests/:/e2e
{%
if
not
drupal.live
|
default
(
0
)
%}
- ~/.Xauthority:/root/.Xauthority:ro
entrypoint: cypress open --project /e2e
user: '1000'
{%
endif
%}
{%
endif
%}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment