mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 18:13:13 +00:00
use phive and phars for tools
This commit is contained in:
+5
-4
@@ -7,10 +7,11 @@
|
|||||||
.settings
|
.settings
|
||||||
|
|
||||||
# Build folder and vendor folder are generated code; no need to version this
|
# Build folder and vendor folder are generated code; no need to version this
|
||||||
build/*
|
build/
|
||||||
temp/*
|
temp/
|
||||||
vendor/*
|
tools/
|
||||||
composer.phar
|
vendor/
|
||||||
|
*.phar
|
||||||
|
|
||||||
# By default the phpunit.xml.dist is provided; you can override this using a local config file
|
# By default the phpunit.xml.dist is provided; you can override this using a local config file
|
||||||
phpunit.xml
|
phpunit.xml
|
||||||
|
|||||||
+14
-15
@@ -1,8 +1,5 @@
|
|||||||
language: php
|
language: php
|
||||||
php:
|
php: [ 7.1, 7.2, nightly ]
|
||||||
- 7.1
|
|
||||||
- 7.2
|
|
||||||
- nightly
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@@ -13,33 +10,35 @@ matrix:
|
|||||||
- php: nightly
|
- php: nightly
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- composer install --no-interaction --prefer-dist --optimize-autoloader
|
- travis_retry composer install --no-interaction --prefer-dist --optimize-autoloader
|
||||||
|
- travis_retry wget https://phar.io/releases/phive.phar
|
||||||
|
- travis_retry composer require --dev phpunit/phpunit # cannot trust phpunit.phar, because this package is itself in that phar..."
|
||||||
|
|
||||||
|
script:
|
||||||
|
- ./vendor/bin/phpunit --no-coverage
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: test
|
|
||||||
script:
|
|
||||||
- vendor/bin/phpunit --no-coverage
|
|
||||||
|
|
||||||
- stage: coverage
|
- stage: coverage
|
||||||
php: 7.1
|
php: 7.1
|
||||||
script:
|
script:
|
||||||
- vendor/bin/phpunit
|
- ./vendor/bin/phpunit
|
||||||
after_script:
|
after_script:
|
||||||
- wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
|
- travis_retry php phive.phar --no-progress install --trust-gpg-keys E82B2FB314E9906E php-coveralls/php-coveralls && ./tools/php-coveralls --verbose
|
||||||
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar && php coveralls.phar --verbose
|
- travis_retry wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
|
||||||
|
|
||||||
- stage: lint
|
- stage: lint
|
||||||
php: 7.1
|
php: 7.1
|
||||||
before_script:
|
before_script:
|
||||||
- composer create-project symplify/easy-coding-standard temp/ecs
|
- travis_retry php phive.phar --no-progress install --trust-gpg-keys 8E730BA25823D8B5 phpstan
|
||||||
script:
|
script:
|
||||||
- temp/ecs/bin/ecs check src tests
|
- ./tools/phpstan analyse src --level max --configuration phpstan.neon
|
||||||
- vendor/bin/phpstan analyse src --level max --configuration phpstan.neon
|
- composer create-project symplify/easy-coding-standard temp/ecs && temp/ecs/bin/ecs check src tests
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.composer/cache/files
|
- $HOME/.composer/cache/files
|
||||||
|
- $HOME/.phive
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
irc: "irc.freenode.org#phpdocumentor"
|
irc: "irc.freenode.org#phpdocumentor"
|
||||||
|
|||||||
+2
-5
@@ -10,16 +10,13 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.1",
|
"php": ">=7.1",
|
||||||
"phpdocumentor/reflection-common": "^1.0",
|
|
||||||
"phpdocumentor/type-resolver": "^0.5",
|
"phpdocumentor/type-resolver": "^0.5",
|
||||||
"webmozart/assert": "^1.0"
|
"webmozart/assert": "^1.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"mockery/mockery": "^1.0",
|
"mockery/mockery": "^1.0",
|
||||||
"phpunit/phpunit": "^6.4",
|
"doctrine/instantiator": "^1.0"
|
||||||
"doctrine/instantiator": "^1.0",
|
|
||||||
"phpstan/phpstan": "^0.9.0"
|
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
|||||||
Generated
+2
-2083
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user