Skip to content
Snippets Groups Projects
Commit 8fc7ed6a authored by Matthew Grasmick's avatar Matthew Grasmick
Browse files

Adding dev dependencies and travis file.

parent 82192625
No related branches found
No related tags found
No related merge requests found
language: php
branches:
# Only test the master branch and SemVer tags.
only:
- master
- /^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+.*$/
php:
- 7.4
matrix:
fast_finish: true
cache:
apt: true
directories:
- "$HOME/.composer/cache"
- "vendor"
install:
- composer install
before_script:
# Additional PHP config
- phpenv config-add travis.php.ini
script:
- composer test
...@@ -12,10 +12,37 @@ ...@@ -12,10 +12,37 @@
"minimum-stability": "beta", "minimum-stability": "beta",
"prefer-stable": true, "prefer-stable": true,
"require": { "require": {
"php": ">=7.3",
"guzzlehttp/guzzle": "^6", "guzzlehttp/guzzle": "^6",
"composer/semver": "^3.2", "composer/semver": "^3.2",
"kevinrob/guzzle-cache-middleware": "^3.3", "kevinrob/guzzle-cache-middleware": "^3.3",
"doctrine/cache": "^1.10", "doctrine/cache": "^1.10",
"doctrine/common": "^3.1" "doctrine/common": "^3.1"
},
"config": {
"optimize-autoloader": true,
"sort-packages": true
},
"scripts": {
"cs": "phpcs -n --standard=PSR2 src --exclude=Generic.Files.LineLength",
"cbf": "phpcbf -n --standard=PSR2 src --exclude=Generic.Files.LineLength",
"unit": "phpunit",
"lint": [
"find src -name '*.php' -print0 | xargs -0 -n1 php -l"
],
"test": [
"@lint",
"@cs"
]
},
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
}
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"drupal/coder": "^8.3",
"phpunit/phpunit": "^9.5"
} }
} }
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment