Skip to content

Instantly share code, notes, and snippets.

@guilhermevini
Created January 30, 2017 13:56
Show Gist options
  • Save guilhermevini/d84448806342890f90c801856c1b1e31 to your computer and use it in GitHub Desktop.
Save guilhermevini/d84448806342890f90c801856c1b1e31 to your computer and use it in GitHub Desktop.
Test Laravel application on bitbucket pipelines
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