Skip to content

Commit

Permalink
Fix Travis configuration
Browse files Browse the repository at this point in the history
Changes:
- Remove PHP 5.5
- Support PHPUnit 5.7
- Fix Coveralls
  • Loading branch information
mcaskill committed Jan 7, 2018
1 parent e593d77 commit e9add63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ sudo: false

language: php
php:
- 5.5
- 5.6
- 7.0
- 7.1
Expand All @@ -12,7 +11,7 @@ php:
matrix:
fast_finish: true
allow_failures:
- php: 5.5
- php: 5.6
- php: nightly

branches:
Expand All @@ -30,4 +29,4 @@ before_script:
script: composer test

after_script:
- if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then php vendor/bin/coveralls -v ; fi
- if [[ "$TRAVIS_PHP_VERSION" == '7.1' ]]; then php vendor/bin/php-coveralls -v ; fi
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"require-dev": {
"composer/composer": "^1.0",
"php-coveralls/php-coveralls": "^2.0",
"phpunit/phpunit": "^6.5",
"phpunit/phpunit": "^5.7 || ^6.5",
"squizlabs/php_codesniffer": "^3.0"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/ExcludeFilePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ private function getExcludedFiles(PackageInterface $package)
* @param string $vendorDir The directory for installed dependencies.
* @return array Retuns the list of excluded files, prepended with the vendor directory.
*/
private function parseExcludedFiles(array $paths, string $vendorDir)
private function parseExcludedFiles(array $paths, $vendorDir)
{
foreach ($paths as &$path) {
$path = $vendorDir . '/' . $path;
Expand Down

0 comments on commit e9add63

Please sign in to comment.