Skip to content

Commit

Permalink
bump dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
schnittstabil committed Feb 13, 2017
1 parent bc62fb1 commit 7177fd6
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
* text=auto eol=lf

tests/ export-ignore
.editorconfig export-ignore
.codeclimate.yml export-ignore
.gitattributes export-ignore
.gitignore export-ignore
Expand Down
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
build/
/build/
/coverage/
/doc/
/vendor/
*.cache
composer.lock
vendor
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,28 @@ language: php
php:
- 5.6
- 7
- 7.0
- 7.1
- hhvm

sudo: false

install:
- composer selfupdate
- composer install
- composer global require schnittstabil/sugared-php_codesniffer fabpot/php-cs-fixer
- export PATH=$PATH:`composer global config bin-dir --absolute`
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then composer require codeclimate/php-test-reporter satooshi/php-coveralls; fi

script:
- composer test
- composer travis

after_success:
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then vendor/bin/test-reporter; fi
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then vendor/bin/coveralls -v; fi

matrix:
allow_failures:
- php: hhvm

addons:
code_climate:
repo_token: 04d3c006e12446d2cea30d81289f839b002c0c31f3e5ef349a9f3df3552cd79f
14 changes: 6 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
"schnittstabil/get": "^2.0"
},
"require-dev": {
"codeclimate/php-test-reporter": "^0.3",
"satooshi/php-coveralls": "^1.0",
"schnittstabil/phpunit-starter": "^0.1",
"squizlabs/php_codesniffer": "^2.6"
"schnittstabil/phpunit-starter": "^6.0"
},
"extra": {
"you/your-package": {
Expand All @@ -50,17 +47,18 @@
"scripts": {
"clean": "rm -rf build/",
"doc": [
"sugared-sami",
"sugared-rim-sami",
"phpmetrics --report-html build/phpmetrics/index.html src/"
],
"lint": [
"sugared-phpcs",
"php-cs-fixer fix --dry-run --diff src",
"php-cs-fixer fix --dry-run --diff tests"
"sugared-rim-cs"
],
"test": [
"schnittstabil-phpunit-starter",
"composer lint"
],
"travis": [
"schnittstabil-phpunit-starter"
]
}
}
2 changes: 1 addition & 1 deletion tests/FinderByConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Schnittstabil\FinderByConfig;

class FinderByConfigTest extends \PHPUnit_Framework_TestCase
class FinderByConfigTest extends \PHPUnit\Framework\TestCase
{
protected static $config;

Expand Down
12 changes: 12 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace Schnittstabil\FinderByConfig;

require __DIR__.'/../vendor/autoload.php';

/*
* PHPUnit 5/6
*/
if (!class_exists(\PHPUnit\Framework\TestCase::class)) {
class_alias(\PHPUnit_Framework_TestCase::class, \PHPUnit\Framework\TestCase::class);
}

0 comments on commit 7177fd6

Please sign in to comment.