-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add CircleCI config to run linting (php_codesniffer) and tests (PHPUnit) - Fix linting issue with docblock line length - Correct version of phpunit/phpunit (tests were using namespaced TestCase which is available since 6.0) - Change autoloading to PSR-4 (no change to how classes are used) - Add Composer scripts
- Loading branch information
1 parent
c834ae5
commit d530b53
Showing
5 changed files
with
51 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version: 2.1 | ||
|
||
jobs: | ||
lint: | ||
docker: | ||
- image: cimg/php:7.4 | ||
steps: | ||
- checkout | ||
- run: composer install | ||
- run: composer lint -- --report=full --report-junit=php_codesniffer-junit.xml | ||
- store_test_results: | ||
path: php_codesniffer-junit.xml | ||
- store_artifacts: | ||
path: php_codesniffer-junit.xml | ||
|
||
test: | ||
parameters: | ||
php_version: | ||
type: string | ||
docker: | ||
- image: cimg/php:<< parameters.php_version >> | ||
steps: | ||
- checkout | ||
- run: composer install | ||
- run: composer test -- --log-junit phpunit-junit.xml | ||
- store_test_results: | ||
path: phpunit-junit.xml | ||
- store_artifacts: | ||
path: phpunit-junit.xml | ||
|
||
workflows: | ||
build_and_test: | ||
jobs: | ||
- lint | ||
- test: | ||
matrix: | ||
parameters: | ||
php_version: | ||
- 7.4 |
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,6 +1,7 @@ | ||
|
||
.vscode/ | ||
.idea/ | ||
atlassian-ide-plugin.xml | ||
vendor/ | ||
composer.phar | ||
composer.lock | ||
*-junit.xml |
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