use phive and phars for tools

This commit is contained in:
Chuck Burgess
2018-01-29 14:03:51 -06:00
parent 8323f1a50a
commit 746bf9762b
5 changed files with 28 additions and 2107 deletions
+5 -4
View File
@@ -7,10 +7,11 @@
.settings
# Build folder and vendor folder are generated code; no need to version this
build/*
temp/*
vendor/*
composer.phar
build/
temp/
tools/
vendor/
*.phar
# By default the phpunit.xml.dist is provided; you can override this using a local config file
phpunit.xml
+14 -15
View File
@@ -1,8 +1,5 @@
language: php
php:
- 7.1
- 7.2
- nightly
php: [ 7.1, 7.2, nightly ]
sudo: false
env:
@@ -13,33 +10,35 @@ matrix:
- php: nightly
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:
include:
- stage: test
script:
- vendor/bin/phpunit --no-coverage
- stage: coverage
php: 7.1
script:
- vendor/bin/phpunit
- ./vendor/bin/phpunit
after_script:
- wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar && php coveralls.phar --verbose
- 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
- stage: lint
php: 7.1
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:
- temp/ecs/bin/ecs check src tests
- vendor/bin/phpstan analyse src --level max --configuration phpstan.neon
- ./tools/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:
directories:
- $HOME/.composer/cache/files
- $HOME/.phive
notifications:
irc: "irc.freenode.org#phpdocumentor"
+2 -5
View File
@@ -10,16 +10,13 @@
}
],
"require": {
"php": "^7.1",
"phpdocumentor/reflection-common": "^1.0",
"php": ">=7.1",
"phpdocumentor/type-resolver": "^0.5",
"webmozart/assert": "^1.0"
},
"require-dev": {
"mockery/mockery": "^1.0",
"phpunit/phpunit": "^6.4",
"doctrine/instantiator": "^1.0",
"phpstan/phpstan": "^0.9.0"
"doctrine/instantiator": "^1.0"
},
"autoload": {
"psr-4": {
Generated
+2 -2083
View File
File diff suppressed because it is too large Load Diff
+5
View File
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="phpstan" version="^0.9.1" installed="0.9.1" location="./tools/phpstan"/>
<phar name="phpunit" version="^6.5.5" installed="6.5.5" location="./tools/phpunit"/>
</phive>