Created
January 30, 2017 13:56
-
-
Save guilhermevini/d84448806342890f90c801856c1b1e31 to your computer and use it in GitHub Desktop.
Test Laravel application on bitbucket pipelines
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
image: smartapps/bitbucket-pipelines-php-mysql:stretch | |
pipelines: | |
default: | |
- step: | |
script: | |
- service mysql start | |
- mysql -h localhost --user=root --password=root -e "CREATE DATABASE tests;" | |
- composer install | |
- php -r "file_exists('.env') || copy('.env.tests', '.env');" | |
- php artisan optimize | |
- php artisan key:generate | |
- php artisan migrate | |
- php artisan db:seed | |
- php vendor/bin/phpunit --configuration phpunit.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment