Checkout Config
build:
nodes:
analysis:
environment:
php: 7.4
project_setup:
override:
- 'true'
tests:
override:
- php-scrutinizer-run
tests:
environment:
php: 7.2
variables:
TEST_TCP_TRANSPORT_URL: 'tcp://localhost:4000'
TEST_HTTP_TRANSPORT_URL: 'http://localhost:4001/rpc'
TEST_HTTP_BEARER_TOKEN: 'test_token'
services:
jsonrpc_tcp:
image: strider2038/json-rpc-mock-server
env:
JSON_RPC_PROTOCOL: 'tcp'
JSON_RPC_PORT: '4000'
ports:
- 4000
jsonrpc_http:
image: strider2038/json-rpc-mock-server
env:
JSON_RPC_PROTOCOL: 'http'
JSON_RPC_PORT: '4001'
JSON_RPC_BEARER_TOKEN: 'test_token'
ports:
- 4001
tests:
override:
- composer check
- command: ./vendor/bin/phpunit --coverage-clover clover.xml
coverage:
file: clover.xml
format: 'php-clover'
filter:
excluded_paths:
- 'tests/*'
checks:
php: true
coding_style:
php: { }
Repository Config
build:
nodes:
analysis:
project_setup:
override:
- 'true'
tests:
override:
- php-scrutinizer-run
-
command: phpcs-run
use_website_config: true
filter:
excluded_paths:
- 'tests/*'
checks:
php: true
coding_style:
php: { }