Permalink
Browse files

Criado estrutura inicial dos pacotes com build

  • Loading branch information...
1 parent b06bdfe commit a442b521ffadb3d0fdcb80a73abf3ba0e2ef7c2c @moura137 moura137 committed Jul 18, 2016
Showing with 173 additions and 8 deletions.
  1. +5 −1 .gitattributes
  2. +14 −1 .scrutinizer.yml
  3. +5 −6 .travis.yml
  4. +32 −0 README.md
  5. +49 −0 composer.json
  6. +32 −0 phpunit.xml
  7. +36 −0 phpunit.xml.dist
View
@@ -1,8 +1,12 @@
* text=auto
/bin export-ignore
+/build export-ignore
/tests export-ignore
+.coveralls.yml export-ignore
.gitattributes export-ignore
+.scrutinizer.yml export-ignore
.travis.yml export-ignore
+README.md export-ignore
phpunit.xml export-ignore
-readme.md export-ignore
+phpunit.xml.dist export-ignore
View
@@ -2,8 +2,21 @@
imports:
- php
+filter:
+ excluded_paths:
+ - tests/*
+checks:
+ php:
+ code_rating: true
+ duplication: true
+
tools:
+ external_code_coverage: true
+ php_code_sniffer:
+ config:
+ standard: "PSR2"
+ php_cpd: true
php_analyzer: true
php_pdepend: true
php_sim: true
- php_mess_detector: true
+ php_mess_detector: true
View
@@ -1,11 +1,8 @@
# .travis.yml
language: php
php:
- - 5.4
-
-matrix:
- allow_failures:
- - php: 5.5
+ - 5.6
+ - 7.0
before_script:
- curl -s http://getcomposer.org/installer | php
@@ -16,4 +13,6 @@ script:
- php vendor/bin/phpunit -c phpunit.xml.dist
after_script:
- - php vendor/bin/coveralls -v
+ - test "5.6" == "${TRAVIS_PHP_VERSION}" && wget https://scrutinizer-ci.com/ocular.phar
+ - test -f ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
+ - test "5.6" == "${TRAVIS_PHP_VERSION}" && php vendor/bin/coveralls -vbuild/logs/clover.xml
View
@@ -0,0 +1,32 @@
+NwLaravel
+=========
+
+[![Build Status](https://travis-ci.org/naturalweb/NwLaravel.svg?branch=master)](https://travis-ci.org/naturalweb/NwLaravel)
+[![Coverage Status](https://coveralls.io/repos/naturalweb/NwLaravel/badge.png)](https://coveralls.io/r/naturalweb/NwLaravel)
+[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/naturalweb/NwLaravel/badges/quality-score.png?s=8fc61c67360b9bb0860b4ea33d2588dd35e8a1f1)](https://scrutinizer-ci.com/g/naturalweb/NwLaravel/)
+[![SensioLabsInsight](https://insight.sensiolabs.com/projects/91c240e7-d736-45b8-afc9-a12576f3c9dc/mini.png)](https://insight.sensiolabs.com/projects/91c240e7-d736-45b8-afc9-a12576f3c9dc)
+
+Pacote de classes básicas para projeto em Laravel
+
+
+Sociallite
+==========
+
+``` composer require laravel/socialite ```
+Documentação [https://github.com/laravel/socialite]
+
+
+DRIVER OLX
+----------
+
+Para usar o driver para oauth na OLX é muito simples, você precisa somente definir
+as configurações nos serviços em `config/services.php` adicione no array o dados enviado pela olx
+
+```php
+ ...
+ 'olx' => [
+ 'client_id' => '[CLIENT ID]',
+ 'client_secret' => '[CLIENT SECRET]',
+ 'redirect_uri' => '[URL DE REDIRECT]',
+ ],
+```
View
@@ -0,0 +1,49 @@
+{
+ "name": "naturalweb/nwlaravel",
+ "description": "Packages Base for Laravel",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Renato Moura",
+ "email": "renato@naturalweb.com.br"
+ }
+ ],
+ "require": {
+ "php": ">=5.6.0",
+ "laravel/framework": "5.2.*",
+ "prettus/l5-repository": "^2.1",
+ "prettus/laravel-validation": "^1.1",
+ "guzzlehttp/guzzle": "~5.0",
+ "league/fractal": "^0.13.0",
+ "intervention/image": "^2.3",
+ "respect/validation": "^1.1"
+ },
+ "autoload": {
+ "files": [
+ "src/NwLaravel/helpers.php"
+ ],
+ "classmap": [
+ "src/commands"
+ ],
+ "psr-0": {
+ "NwLaravel": "src/"
+ }
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.0",
+ "mockery/mockery": "0.9.*",
+ "satooshi/php-coveralls": "~1.0",
+ "laravel/socialite": "~2.0"
+ },
+ "autoload-dev": {
+ "psr-4": {
+ "Tests\\": "tests/"
+ }
+ },
+ "minimum-stability": "stable",
+ "suggest": {
+ "lucadegasperi/oauth2-server-laravel": "OAuth 2.0 Server for Laravel (5.1.*)",
+ "laravel/socialite": "Fluent interface to OAuth authentication (~2)",
+ "maatwebsite/excel": "An eloquent way of importing and exporting Excel and CSV files (^2.1)"
+ }
+}
View
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- http://www.phpunit.de/manual/current/en/appendixes.configuration.html -->
+<phpunit backupGlobals="false"
+ backupStaticAttributes="false"
+ bootstrap="vendor/autoload.php"
+ colors="true"
+ convertErrorsToExceptions="true"
+ convertNoticesToExceptions="true"
+ convertWarningsToExceptions="true"
+ processIsolation="false"
+ stopOnFailure="false"
+ syntaxCheck="false">
+
+ <testsuites>
+ <testsuite name="Package Test Suite">
+ <directory suffix=".php">./tests/</directory>
+ <exclude>./tests/TestCase.php</exclude>
+ </testsuite>
+ </testsuites>
+
+ <filter>
+ <whitelist>
+ <directory suffix=".php">./src</directory>
+ <exclude>
+ <directory suffix=".php">./src/commands</directory>
+ <directory suffix=".php">./src/config</directory>
+ <directory suffix=".php">./src/resources</directory>
+ </exclude>
+ </whitelist>
+ </filter>
+</phpunit>
View
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- http://www.phpunit.de/manual/current/en/appendixes.configuration.html -->
+<phpunit backupGlobals="false"
+ backupStaticAttributes="false"
+ bootstrap="vendor/autoload.php"
+ colors="true"
+ convertErrorsToExceptions="true"
+ convertNoticesToExceptions="true"
+ convertWarningsToExceptions="true"
+ processIsolation="false"
+ stopOnFailure="false"
+ syntaxCheck="false">
+
+ <testsuites>
+ <testsuite name="Package Test Suite">
+ <directory suffix=".php">./tests/</directory>
+ <exclude>./tests/TestCase.php</exclude>
+ </testsuite>
+ </testsuites>
+
+ <filter>
+ <whitelist>
+ <directory suffix=".php">./src</directory>
+ <exclude>
+ <directory suffix=".php">./src/commands</directory>
+ <directory suffix=".php">./src/config</directory>
+ <directory suffix=".php">./src/resources</directory>
+ </exclude>
+ </whitelist>
+ </filter>
+
+ <logging>
+ <log type="coverage-clover" target="build/logs/clover.xml" />
+ </logging>
+</phpunit>

0 comments on commit a442b52

Please sign in to comment.