From e22d824c2d01a081d5876958a341ab771561b0fb Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 10 Feb 2018 14:57:19 -0600 Subject: [PATCH] Fix traivs, nicer output for tests --- .travis.yml | 4 +- composer.json | 1 + composer.lock | 166 +++++++++++++++++++++++++++++++++++++++++++++++++- phpunit.xml | 2 +- 4 files changed, 168 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index f24f6911d..0a19b3748 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,6 @@ language: php dist: trusty php: - - 7.0 - - 7.1 - 7.2 sudo: false cache: @@ -15,7 +13,7 @@ before_install: before_script: - echo 'opcache.enable_cli=1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini - cp .env.travis .env - - composer install --no-interaction --prefer-dist --no-suggest + - travis_retry composer install --no-interaction --prefer-dist --no-suggest - php artisan migrate --seed script: - vendor/bin/phpunit --coverage-clover coverage.xml diff --git a/composer.json b/composer.json index 7a4c407d2..6f2f7c560 100644 --- a/composer.json +++ b/composer.json @@ -44,6 +44,7 @@ "require-dev": { "barryvdh/laravel-debugbar": "^3.1", "barryvdh/laravel-ide-helper": "^2.4", + "codedungeon/phpunit-result-printer": "^0.6.0", "filp/whoops": "^2.1", "friendsofphp/php-cs-fixer": "^2.8.0", "fzaninotto/faker": "^1.6", diff --git a/composer.lock b/composer.lock index 1229cfecf..9208cdfdf 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "4ba3b472631673e055cbb2bf72942cc7", + "content-hash": "86cf8a899601833098c86cb505764e92", "packages": [ { "name": "appstract/laravel-blade-directives", @@ -4347,6 +4347,55 @@ ], "time": "2016-06-13T19:28:20+00:00" }, + { + "name": "codedungeon/phpunit-result-printer", + "version": "0.6.0", + "source": { + "type": "git", + "url": "https://github.com/mikeerickson/phpunit-pretty-result-printer.git", + "reference": "34659fcb48ef35fc27c09ded46ac79b25ee95d2f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mikeerickson/phpunit-pretty-result-printer/zipball/34659fcb48ef35fc27c09ded46ac79b25ee95d2f", + "reference": "34659fcb48ef35fc27c09ded46ac79b25ee95d2f", + "shasum": "" + }, + "require": { + "hassankhan/config": "^0.10.0", + "php": "^7.1", + "symfony/yaml": "^2.7|^3.0|^4.0" + }, + "require-dev": { + "phpunit/phpunit": ">=5.2", + "spatie/phpunit-watcher": "^1.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Codedungeon\\PHPUnitPrettyResultPrinter\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike Erickson", + "email": "codedungeon@gmail.com" + } + ], + "description": "PHPUnit Pretty Result Printer", + "keywords": [ + "composer", + "package", + "phpunit", + "printer", + "result-printer" + ], + "time": "2018-02-04T21:48:07+00:00" + }, { "name": "composer/semver", "version": "1.4.2", @@ -4761,6 +4810,63 @@ ], "time": "2016-01-20T08:20:44+00:00" }, + { + "name": "hassankhan/config", + "version": "0.10.0", + "source": { + "type": "git", + "url": "https://github.com/hassankhan/config.git", + "reference": "06ac500348af033f1a2e44dc357ca86282626d4a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hassankhan/config/zipball/06ac500348af033f1a2e44dc357ca86282626d4a", + "reference": "06ac500348af033f1a2e44dc357ca86282626d4a", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.0", + "scrutinizer/ocular": "~1.1", + "squizlabs/php_codesniffer": "~2.2" + }, + "suggest": { + "symfony/yaml": "~2.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Noodlehaus\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Hassan Khan", + "homepage": "http://hassankhan.me/", + "role": "Developer" + } + ], + "description": "Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files", + "homepage": "http://hassankhan.me/config/", + "keywords": [ + "config", + "configuration", + "ini", + "json", + "microphp", + "unframework", + "xml", + "yaml", + "yml" + ], + "time": "2016-02-11T16:21:17+00:00" + }, { "name": "maximebf/debugbar", "version": "v1.15.0", @@ -6679,6 +6785,64 @@ "homepage": "https://symfony.com", "time": "2018-01-03T07:38:00+00:00" }, + { + "name": "symfony/yaml", + "version": "v4.0.4", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "ffc60bda1d4a00ec0b32eeabf39dc017bf480028" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/ffc60bda1d4a00ec0b32eeabf39dc017bf480028", + "reference": "ffc60bda1d4a00ec0b32eeabf39dc017bf480028", + "shasum": "" + }, + "require": { + "php": "^7.1.3" + }, + "conflict": { + "symfony/console": "<3.4" + }, + "require-dev": { + "symfony/console": "~3.4|~4.0" + }, + "suggest": { + "symfony/console": "For validating YAML files using the lint command" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Yaml Component", + "homepage": "https://symfony.com", + "time": "2018-01-21T19:06:11+00:00" + }, { "name": "theseer/tokenizer", "version": "1.1.0", diff --git a/phpunit.xml b/phpunit.xml index 3cea5b81a..82cc1fd74 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -6,13 +6,13 @@ convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" + printerClass="Codedungeon\PHPUnitPrettyResultPrinter\Printer" processIsolation="false" stopOnFailure="false"> ./tests/Feature - ./tests/Unit