Skip to content

Commit

Permalink
Merge pull request #5 from ytake/develop
Browse files Browse the repository at this point in the history
ci fixed
  • Loading branch information
ytake committed Nov 7, 2015
2 parents 9aa2aac + 3223ed8 commit dca5beb
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 7 deletions.
14 changes: 12 additions & 2 deletions .scrutinizer.yml
Expand Up @@ -5,14 +5,24 @@ filter:
- tests/*
- src/ConfigureLogging.php
tools:
external_code_coverage:
timeout: 600
php_code_sniffer:
config:
standard: "PSR2"
php_cs_fixer:
config: { level: psr2 }
php_mess_detector: true
sensiolabs_security_checker: true
php_pdepend: true
php_sim: true
checks:
php:
code_rating: true
duplication: true
build:
tests:
override:
-
command: 'phpunit'
coverage:
file: 'tests/logs/clover.xml'
format: 'php-clover'
3 changes: 1 addition & 2 deletions .travis.yml
Expand Up @@ -4,6 +4,7 @@ php:
- 5.5
- 5.6
- 7
- hhvm
before_script:
- composer self-update
- composer install --prefer-source
Expand All @@ -12,5 +13,3 @@ script:
- ./vendor/bin/phpunit
after_script:
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then php vendor/bin/coveralls -v; fi
- wget https://scrutinizer-ci.com/ocular.phar
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then php ocular.phar code-coverage:upload --format=php-clover tests/build/clover.xml; fi
23 changes: 20 additions & 3 deletions README.md
Expand Up @@ -97,6 +97,23 @@ override bootstrappers property
];
```

in Application Console\Kernel class

override bootstrappers property

```php
protected $bootstrappers = [
'Illuminate\Foundation\Bootstrap\DetectEnvironment',
'Illuminate\Foundation\Bootstrap\LoadConfiguration',
\Ytake\LaravelFluent\ConfigureLogging::class,
'Illuminate\Foundation\Bootstrap\HandleExceptions',
'Illuminate\Foundation\Bootstrap\RegisterFacades',
'Illuminate\Foundation\Bootstrap\SetRequestForConsole',
'Illuminate\Foundation\Bootstrap\RegisterProviders',
'Illuminate\Foundation\Bootstrap\BootProviders',
];
```

edit config/app.php
```php
'log' => 'fluent',
Expand All @@ -120,13 +137,13 @@ example (production)
```
and more

## Laravel.Smarty Package Optimize (Optional for production)
## Package Optimize (Optional for production)

required config/compile.php

```php
'providers' => [
//
\Ytake\LaravelFluent\LogServiceProvider::class,
//
\Ytake\LaravelFluent\LogServiceProvider::class,
],
```

0 comments on commit dca5beb

Please sign in to comment.