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
+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"