This repository has been archived by the owner on Jul 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
126 additions
and
2,828 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1 @@ | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.php_cs export-ignore | ||
.scrutinizer.yml export-ignore | ||
.sensiolabs.yml export-ignore | ||
.travis.yml export-ignore | ||
appveyor.yml export-ignore | ||
/scripts/ export-ignore | ||
/test/ export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: CI | ||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: 0 14 * * 0 # Sunday 2PM UTC = Monday 12AM AEST | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ['7.2', '7.3', '7.4'] | ||
name: PHP ${{ matrix.php }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Set up PHP | ||
uses: shivammathur/setup-php@master | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: mbstring | ||
coverage: pcov | ||
- name: Check PHP version | ||
run: php -v | ||
- name: Install dependencies | ||
run: make vendor | ||
- name: Make | ||
run: make ci | ||
- name: Upload coverage reports | ||
if: success() | ||
run: | | ||
test ! -z "$TOKEN" | ||
bash <(curl -s https://codecov.io/bash) -t "$TOKEN" -B "${{ github.ref }}" | ||
env: | ||
TOKEN: "${{ secrets.CODECOV_TOKEN }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/coverage/ | ||
/test/bin/php-cs-fixer | ||
/.makefiles/ | ||
/artifacts/ | ||
/composer.lock | ||
/vendor/ | ||
/README.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,6 @@ | ||
<?php | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in(__DIR__) | ||
->exclude(array( | ||
'build', | ||
'coverage', | ||
'test/fixture', | ||
'vendor', | ||
'web', | ||
)); | ||
$config = Eloquent\CodeStyle\Config::create(__DIR__); | ||
$config->setCacheFile(__DIR__ . '/artifacts/lint/php-cs-fixer/cache'); | ||
|
||
return PhpCsFixer\Config::create() | ||
->setRules(array( | ||
'@PSR2' => true, | ||
|
||
'array_syntax' => array('syntax' => 'short'), | ||
'binary_operator_spaces' => false, | ||
'blank_line_after_opening_tag' => true, | ||
'blank_line_before_return' => true, | ||
'braces' => false, | ||
'cast_spaces' => true, | ||
'class_definition' => array('singleLine' => false), | ||
'concat_space' => array('spacing' => 'one'), | ||
'declare_equal_normalize' => true, | ||
'function_typehint_space' => true, | ||
'hash_to_slash_comment' => true, | ||
'heredoc_to_nowdoc' => true, | ||
'include' => true, | ||
'linebreak_after_opening_tag' => true, | ||
'lowercase_cast' => true, | ||
'method_separation' => true, | ||
'native_function_casing' => true, | ||
'new_with_braces' => true, | ||
'no_blank_lines_after_class_opening' => true, | ||
'no_blank_lines_after_phpdoc' => true, | ||
'no_empty_comment' => true, | ||
'no_empty_phpdoc' => true, | ||
'no_empty_statement' => true, | ||
'no_extra_consecutive_blank_lines' => true, | ||
'no_leading_import_slash' => true, | ||
'no_leading_namespace_whitespace' => true, | ||
'no_mixed_echo_print' => true, | ||
'no_multiline_whitespace_before_semicolons' => true, | ||
'no_short_bool_cast' => true, | ||
'no_singleline_whitespace_before_semicolons' => true, | ||
'no_spaces_around_offset' => true, | ||
'no_trailing_comma_in_singleline_array' => true, | ||
'no_unneeded_control_parentheses' => true, | ||
'no_unused_imports' => true, | ||
'no_whitespace_before_comma_in_array' => true, | ||
'no_whitespace_in_blank_line' => true, | ||
'normalize_index_brace' => true, | ||
'object_operator_without_whitespace' => true, | ||
'ordered_imports' => true, | ||
'phpdoc_align' => true, | ||
'phpdoc_indent' => true, | ||
'phpdoc_no_package' => true, | ||
'phpdoc_scalar' => true, | ||
'phpdoc_to_comment' => true, | ||
'phpdoc_trim' => true, | ||
'phpdoc_types' => true, | ||
'pre_increment' => true, | ||
'return_type_declaration' => true, | ||
'short_scalar_cast' => true, | ||
'single_blank_line_before_namespace' => true, | ||
'single_quote' => true, | ||
'space_after_semicolon' => true, | ||
'standardize_not_equals' => true, | ||
'ternary_operator_spaces' => true, | ||
'trailing_comma_in_multiline_array' => true, | ||
'trim_array_spaces' => true, | ||
'unary_operator_spaces' => true, | ||
'whitespace_after_comma_in_array' => true, | ||
)) | ||
->setFinder($finder); | ||
return $config; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,7 @@ | ||
test: install | ||
php --version | ||
PHP_ERROR_EXCEPTION_DEPRECATIONS=1 vendor/bin/phpunit --no-coverage | ||
# Powered by https://makefiles.dev/ | ||
|
||
coverage: install | ||
phpdbg --version | ||
PHP_ERROR_EXCEPTION_DEPRECATIONS=1 phpdbg -qrr vendor/bin/phpunit | ||
-include .makefiles/Makefile | ||
-include .makefiles/pkg/php/v1/Makefile | ||
|
||
open-coverage: | ||
open coverage/index.html | ||
|
||
lint: test/bin/php-cs-fixer | ||
test/bin/php-cs-fixer fix --using-cache no | ||
|
||
install: | ||
composer install | ||
|
||
.PHONY: test coverage open-coverage lint install | ||
|
||
test/bin/php-cs-fixer: | ||
curl -sSL https://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -o test/bin/php-cs-fixer | ||
chmod +x test/bin/php-cs-fixer | ||
.makefiles/%: | ||
@curl -sfL https://makefiles.dev/v1 | bash /dev/stdin "$@" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.