Created
December 5, 2018 04:16
-
-
Save SreejithEzhakkad/1aa2212bc917b2df87fee1a15a9c54e9 to your computer and use it in GitHub Desktop.
Bitbucket Pipeline file for Laravel
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
# 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 | |
- node | |
script: | |
- apt-get update && apt-get install -qy git curl libmcrypt-dev mysql-client gnupg gnupg2 | |
- yes | pecl install mcrypt-1.0.1 | |
- docker-php-ext-install pdo_mysql | |
- bash ./install-composer.sh | |
- composer install | |
- curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh | |
- bash nodesource_setup.sh | |
- apt-get install nodejs -y | |
- npm install | |
- npm run prod | |
- ln -f -s .env.pipelines .env | |
- php artisan migrate | |
- php artisan serve & | |
- sleep 5 | |
- ./vendor/bin/phpunit | |
- curl -vk http://localhost:8000 | |
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