Skip to content
Snippets Groups Projects
Unverified Commit 63a995ca authored by Chuck Burgess's avatar Chuck Burgess Committed by GitHub
Browse files

Merge pull request #19 from ashnazg/ci

CI updates
parents e6bd8065 22e300b4
No related branches found
No related tags found
No related merge requests found
......@@ -11,32 +11,37 @@ matrix:
install:
- travis_retry composer install --no-interaction --prefer-dist --optimize-autoloader
- travis_retry wget https://phar.io/releases/phive.phar
script:
- ./vendor/bin/phpunit --no-coverage
jobs:
include:
- stage: coverage
- stage: analysis
php: 7.1
script:
- ./vendor/bin/phpunit
after_script:
- travis_retry wget --no-verbose https://phar.io/releases/phive.phar
- travis_retry php phive.phar --no-progress install --trust-gpg-keys E82B2FB314E9906E php-coveralls/php-coveralls && ./tools/php-coveralls --verbose
- travis_retry wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- travis_retry wget --no-verbose https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- stage: lint
- stage: analysis
php: 7.1
before_script:
- travis_retry wget --no-verbose https://phar.io/releases/phive.phar
- travis_retry php phive.phar --no-progress install --trust-gpg-keys 8E730BA25823D8B5 phpstan
script:
- ./tools/phpstan analyse src --level max --configuration phpstan.neon
- stage: analysis
php: 7.1
script:
- composer create-project symplify/easy-coding-standard temp/ecs ^3 && temp/ecs/bin/ecs check src tests
cache:
directories:
- $HOME/.composer/cache/files
- $HOME/.composer
- $HOME/.phive
notifications:
......
......@@ -19,7 +19,7 @@
}
},
"require-dev": {
"phpunit/phpunit": "^6"
"phpunit/phpunit": "~6"
},
"extra": {
"branch-alias": {
......
This diff is collapsed.
......@@ -14,6 +14,8 @@ declare(strict_types=1);
namespace phpDocumentor\Reflection;
use InvalidArgumentException;
/**
* Value Object for Fqsen.
*
......@@ -46,7 +48,7 @@ final class Fqsen
);
if ($result === 0) {
throw new \InvalidArgumentException(
throw new InvalidArgumentException(
sprintf('"%s" is not a valid Fqsen.', $fqsen)
);
}
......
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