Skip to content

Commit

Permalink
Merge pull request #3 from ptondereau/master
Browse files Browse the repository at this point in the history
Add tests suite and Refactor and typo fix
  • Loading branch information
nahid committed Jun 7, 2016
2 parents 78ffd5f + 7a423c0 commit 8385cec
Show file tree
Hide file tree
Showing 22 changed files with 1,065 additions and 422 deletions.
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
* text=auto

/tests export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/phpunit.xml.dist export-ignore
/README.md export-ignore
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*.DS_Store

/vendor
/composer.lock
phpunit.xml
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: php

php:
- 5.5.9
- 5.5
- 5.6
- 7.0
- hhvm

sudo: false

install:
- travis_retry composer install --no-interaction --prefer-source

script:
- if [ "$TRAVIS_PHP_VERSION" != "5.5.9" ] && [ "$TRAVIS_PHP_VERSION" != "5.5" ] && [ "$TRAVIS_PHP_VERSION" != "5.6" ]; then vendor/bin/phpunit; fi
- if [ "$TRAVIS_PHP_VERSION" == "5.5.9" ] || [ "$TRAVIS_PHP_VERSION" == "5.5" ] || [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi

after_script:
- if [ "$TRAVIS_PHP_VERSION" == "5.5.9" ] || [ "$TRAVIS_PHP_VERSION" == "5.5" ] || [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$TRAVIS_PHP_VERSION" == "5.5.9" ] || [ "$TRAVIS_PHP_VERSION" == "5.5" ] || [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ To use facade you have to add these line in `app.php` `aliases` array
Now run this command from your terminal to publish this package resources

```
php artisan vendor:publish
php artisan vendor:publish --provider="Nahid\Talk\TalkServiceProvider"
```

After run this command all necessary file will be included with your project. This package has two default migrations. So you have to run migrate command like these. Make sure your database configuration was configure correctly.
Expand Down
39 changes: 21 additions & 18 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,26 @@
"email": "[email protected]"
}
],
"minimum-stability": "dev",
"require": {
"php": ">=5.4.0",
"sebastian-berc/repositories": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "4.1.*",
"orchestra/testbench": "~3.0"
},
"autoload": {
"psr-4": {
"Nahid\\Talk\\": "src/"
}
},
"extra": {
"branch-alias": {
"dev-master": "1.1.x-dev"
}
"require": {
"php": ">=5.4.0",
"illuminate/contracts": "5.0.* || 5.1.* || 5.2.* || 5.3.*",
"illuminate/support": "5.0.* || 5.1.* || 5.2.* || 5.3.*",
"sebastian-berc/repositories": "^1.0"
},
"require-dev": {
"graham-campbell/testbench": "^3.1",
"phpunit/phpunit": "^4.8 || ^5.0"
},
"autoload": {
"psr-4": {
"Nahid\\Talk\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Nahid\\Talk\\Tests\\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
Loading

0 comments on commit 8385cec

Please sign in to comment.