Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: '2.1'

jobs:
ValidateBenchmark:
docker:
- image: phpbenchmarks/benchmark-kit:4
working_directory: /var/www/benchmark
environment:
NGINX_PORT: 80
steps:
- checkout
- run:
name: /var/entrypoint.sh
command: /var/entrypoint.sh --nginx-as-service
- run:
name: "benchmark:validate"
command: "/var/benchmark-kit/bin/console benchmark:validate"

workflows:
version: '2.1'
BenchmarkKit:
jobs:
- ValidateBenchmark
86 changes: 86 additions & 0 deletions .phpbenchmarks/Configuration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?php

declare(strict_types=1);

namespace PhpBenchmarks\BenchmarkConfiguration;

class Configuration
{
public static function getComponentType(): int
{
return 2;
}

public static function getComponentName(): string
{
return 'CakePHP';
}

public static function getComponentSlug(): string
{
return 'cake-php';
}

public static function isPhp56Compatible(): bool
{
return true;
}

public static function isPhp70Compatible(): bool
{
return true;
}

public static function isPhp71Compatible(): bool
{
return true;
}

public static function isPhp72Compatible(): bool
{
return true;
}

public static function isPhp73Compatible(): bool
{
return true;
}

public static function getBenchmarkUrl(): string
{
return '/benchmark/helloworld';
}

public static function getCoreDependencyName(): string
{
return 'cakephp/cakephp';
}

public static function getCoreDependencyMajorVersion(): int
{
return 3;
}

public static function getCoreDependencyMinorVersion(): int
{
return 7;
}

public static function getCoreDependencyPatchVersion(): int
{
return 0;
}

public static function getBenchmarkType(): int
{
return 1;
}

public static function getSourceCodeUrls(): array
{
return [
'route' => 'https://github.com/phpbenchmarks/cake-php-common/blob/cake-php_3_hello-world/Controller/HelloWorldController.php#L10',
'controller' => 'https://github.com/phpbenchmarks/cake-php-common/blob/cake-php_3_hello-world/Controller/HelloWorldController.php'
];
}
}
Loading