Followed this Article
image: php:7.2-fpm
pipelines:
default:
- step:
script:
- apt-get update && apt-get install -qy git curl libmcrypt-dev mysql-client
- yes | pecl install mcrypt-1.0.1
- docker-php-ext-install pdo_mysql
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- 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'
And getting this exception, any idea?
Package 'mysql-client' has no installation candidate
Hi Sebastian,
Try
- apt-get update && apt-get install -y git curl libmcrypt-dev default-mysql-client
It worked for me.
Thank you! It works for 5.7
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sweet! That worked!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Fine, but why is the Laravel pipeline documentation still suggesting the wrong command?
See
https://confluence.atlassian.com/bitbucket/laravel-with-bitbucket-pipelines-913473967.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Julian Haluska you can use "Provide feedback about this article" at the bottom of the page to report it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.