Skip to content

Commit

Permalink
Add PSR-4 autoloader for spec folder, remove custom bin directory
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Dec 1, 2020
1 parent c1758b5 commit ced5f92
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 12 deletions.
18 changes: 18 additions & 0 deletions .editorconfig
@@ -0,0 +1,18 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,json}]
indent_size = 2

[composer.json]
indent_size = 4
1 change: 0 additions & 1 deletion .gitignore
@@ -1,3 +1,2 @@
bin/*
composer.lock
vendor
7 changes: 2 additions & 5 deletions .travis.yml
Expand Up @@ -3,15 +3,12 @@ dist: bionic
language: php

php:
- '7.1'
- '7.2'
- '7.3'
- '7.4'
- '8.0snapshot'

before_script:
- composer update --no-interaction --no-progress

script:
- php bin/phpspec run -f pretty
- php bin/phpcs --standard=PSR2 src/
- php vendor/bin/phpspec run -f pretty
- php vendor/bin/phpcs --standard=PSR12 src/
15 changes: 9 additions & 6 deletions composer.json
Expand Up @@ -14,19 +14,22 @@
"require": {
"php": "^7.4 || ^8.0",
"guzzlehttp/guzzle": "^6.0 || ^7.0",
"doctrine/inflector": "^1.0 || ^2.0"
},
"doctrine/inflector": "^1.0 || ^2.0",
"ext-json": "*"
},
"require-dev": {
"phpspec/phpspec": "^5.1 || ^6.0 || ^7.0",
"phpspec/phpspec": "^6.0 || ^7.0",
"squizlabs/php_codesniffer": "^3.0"
},
"config": {
"bin-dir": "bin"
},
"autoload": {
"psr-4": {
"Packagist\\Api\\": "src/Packagist/Api/"
}
},
"autoload-dev": {
"psr-4": {
"spec\\Packagist\\Api\\": "spec/Packagist/Api/"
}
},
"extra": {
"branch-alias": {
Expand Down

0 comments on commit ced5f92

Please sign in to comment.