mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 15:16:30 +03:00
Create Flex endpoint
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"aliases": {
|
||||
"panther": "symfony/panther"
|
||||
},
|
||||
"recipes": {
|
||||
"symfony/panther": [
|
||||
"1.0"
|
||||
]
|
||||
},
|
||||
"recipe-conflicts": {
|
||||
"symfony/panther": {
|
||||
"1.0": {
|
||||
"symfony/flex": "<1.23.0 || >=2.0.0,<2.8.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"versions": [],
|
||||
"branch": "main",
|
||||
"is_contrib": false,
|
||||
"_links": {
|
||||
"repository": "github.com/symfony/recipes",
|
||||
"origin_template": "{package}:{version}@github.com/symfony/recipes:main",
|
||||
"recipe_template": "https://raw.githubusercontent.com/symfony/recipes/flex/pull-1566/{package_dotted}.{version}.json",
|
||||
"recipe_template_relative": "{package_dotted}.{version}.json",
|
||||
"archived_recipes_template": "https://raw.githubusercontent.com/symfony/recipes/flex/pull-1566/archived/{package_dotted}/{ref}.json",
|
||||
"archived_recipes_template_relative": "archived/{package_dotted}/{ref}.json"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/panther": {
|
||||
"manifest": {
|
||||
"conflict": {
|
||||
"symfony/flex": "<1.23.0 || >=2.0.0,<2.8.0"
|
||||
},
|
||||
"dockerfile": [
|
||||
"# Chromium and ChromeDriver",
|
||||
"ENV PANTHER_NO_SANDBOX=1",
|
||||
"# Not mandatory, but recommended",
|
||||
"ENV PANTHER_CHROME_ARGUMENTS='--disable-dev-shm-usage'",
|
||||
"# hadolint ignore=DL3008",
|
||||
"RUN apt-get update && apt-get install -y --no-install-recommends chromium chromium-driver && rm -rf /var/lib/apt/lists/*",
|
||||
"",
|
||||
"# Firefox and geckodriver",
|
||||
"#ARG GECKODRIVER_VERSION=0.34.0",
|
||||
"# hadolint ignore=DL3008",
|
||||
"#RUN apt-get update && apt-get install -y --no-install-recommends firefox && rm -rf /var/lib/apt/lists/*",
|
||||
"#RUN wget -q https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER_VERSION/geckodriver-v$GECKODRIVER_VERSION-aarch64.tar.gz; \\",
|
||||
"#\ttar -zxf geckodriver-v$GECKODRIVER_VERSION-aarch64.tar.gz -C /usr/bin; \\",
|
||||
"#\trm geckodriver-v$GECKODRIVER_VERSION-aarch64.tar.gz"
|
||||
],
|
||||
"dotenv": {
|
||||
"test": {
|
||||
"PANTHER_APP_ENV": "test",
|
||||
"PANTHER_ERROR_SCREENSHOT_DIR": "./var/error-screenshots",
|
||||
"PANTHER_DEVTOOLS": "0"
|
||||
}
|
||||
},
|
||||
"add-lines": [
|
||||
{
|
||||
"file": "phpunit.xml.dist",
|
||||
"content": " <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
||||
"position": "after_target",
|
||||
"target": "<extensions>",
|
||||
"requires": "symfony/phpunit-bridge:<7.3",
|
||||
"warn_if_missing": false
|
||||
},
|
||||
{
|
||||
"file": "phpunit.dist.xml",
|
||||
"content": " <bootstrap class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
||||
"position": "after_target",
|
||||
"target": "<extensions>",
|
||||
"requires": "symfony/phpunit-bridge:<7.3",
|
||||
"warn_if_missing": false
|
||||
},
|
||||
{
|
||||
"file": "phpunit.xml.dist",
|
||||
"content": " <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
||||
"position": "after_target",
|
||||
"target": "<extensions>",
|
||||
"requires": "phpunit/phpunit:<10",
|
||||
"warn_if_missing": false
|
||||
},
|
||||
{
|
||||
"file": "phpunit.dist.xml",
|
||||
"content": " <bootstrap class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
||||
"position": "after_target",
|
||||
"target": "<extensions>",
|
||||
"requires": "phpunit/phpunit:>=10",
|
||||
"warn_if_missing": false
|
||||
}
|
||||
],
|
||||
"post-install-output": [
|
||||
" * Install <fg=green>ChromeDriver</> or <fg=green>geckodriver</> with ",
|
||||
" the package manager of your Operating System.",
|
||||
" ",
|
||||
" Alternatively, use Browser Driver Installer:",
|
||||
"",
|
||||
" <fg=green>composer require --dev dbrekelmans/bdi</>",
|
||||
" <fg=green>vendor/bin/bdi detect drivers</>",
|
||||
"",
|
||||
" This step is not necessary when using Docker."
|
||||
]
|
||||
},
|
||||
"files": [],
|
||||
"ref": "814d444c2b82ec0d6dce87ecec32b06c2e89458f"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user