Created
March 1, 2019 07:15
-
-
Save raksa/c9859907d37fa26ac6c41baf10e7b3f4 to your computer and use it in GitHub Desktop.
Bitbucket pipelines for Laravel 5
This file contains hidden or 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
APP_NAME=app | |
APP_ENV=local | |
APP_KEY=base64:wE9tKIHu8aQGcLu6oZfUcqD/U3jdOgYrcoZ/UqY8K2c= | |
APP_DEBUG=true | |
APP_URL=http://localhost:8000 | |
LOG_CHANNEL=stack | |
DB_CONNECTION=mysql | |
DB_HOST=127.0.0.1 | |
DB_PORT=3306 | |
DB_DATABASE=homestead | |
DB_USERNAME=homestead | |
DB_PASSWORD='secret' | |
BROADCAST_DRIVER=log | |
CACHE_DRIVER=file | |
QUEUE_CONNECTION=sync | |
SESSION_DRIVER=file | |
SESSION_LIFETIME=120 | |
REDIS_HOST=127.0.0.1 | |
REDIS_PASSWORD=null | |
REDIS_PORT=6379 | |
MAIL_DRIVER=smtp | |
MAIL_HOST=smtp.mailtrap.io | |
MAIL_PORT=2525 | |
MAIL_USERNAME=null | |
MAIL_PASSWORD=null | |
MAIL_ENCRYPTION=null | |
MAIL_FROM_ADDRESS=null | |
MAIL_FROM_NAME=null | |
PUSHER_APP_ID= | |
PUSHER_APP_KEY= | |
PUSHER_APP_SECRET= | |
PUSHER_APP_CLUSTER=mt1 | |
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" | |
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" |
This file contains hidden or 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
# This is a sample build configuration for PHP. | |
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples. | |
# Only use spaces to indent your .yml configuration. | |
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: php:7.2-fpm | |
pipelines: | |
default: | |
- step: | |
caches: | |
- composer | |
script: | |
- apt-get update && apt-get install -y unzip | |
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
- docker-php-ext-install -j$(nproc) pdo_mysql | |
- php -r "file_exists('.env') || copy('.env.pipelines', '.env');" | |
- composer install | |
- php artisan migrate:fresh --seed | |
- ./vendor/bin/phpunit | |
services: | |
- mysql | |
definitions: | |
services: | |
mysql: | |
image: mysql:5.7 | |
environment: | |
MYSQL_DATABASE: 'homestead' | |
MYSQL_RANDOM_ROOT_PASSWORD: 'yes' | |
MYSQL_USER: 'homestead' | |
MYSQL_PASSWORD: 'secret' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment