Created
June 4, 2014 09:46
-
-
Save foxted/b6d6c23afd8dc0da9d90 to your computer and use it in GitHub Desktop.
Unit test Laravel 4.2 packages in context with Travis CI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: php | |
php: | |
- 5.4 | |
- 5.5 | |
- 5.6 | |
before_install: | |
- composer self-update | |
- composer create-project laravel/laravel | |
- cd ./laravel | |
- composer config repositories.[GITHUB_USERNAME] vcs [GITHUB_HTTPS_CLONE_URL] | |
- composer require [PACKAGE_NAME] dev-master | |
- composer update | |
- cp ./vendor/[GITHUB_USERNAME]/[GITHUB_PACKAGE]/tests/config/app.php ./app/config/testing/ | |
- export APP_ENV="testing" | |
- cd ./vendor/[GITHUB_USERNAME]/[GITHUB_PACKAGE] | |
script: "phpunit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return array( | |
'providers' => append_config(array( | |
'Namespace\To\ServiceProvider' | |
)), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment