Hey there,
I'm struggling with my Laravel Dusk Set-Up for bitbucket-Pipelines.
Any ideas?
bitbucket-pipeline.yml file
image:
name: php:7.3-fpm
pipelines:
default:
- step:
caches:
- composer
script:
#Required Packages
- apt-get update
- apt-get install -qy git curl libmcrypt-dev default-mysql-client libzip-dev npm
- yes | pecl install mcrypt-1.0.2
- docker-php-ext-install pdo_mysql bcmath zip
#
#Composer
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
#
#NPM
#
#Dusk
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9515 http://localhost &
#
#Writeable Folders
- chmod -R 777 ./storage
- chown -R www-data:www-data ./storage
#
#Ready to Server
- ln -f -s .env.bitbucket .env
- php artisan key:generate
- php artisan storage:link
- php artisan migrate
- php artisan serve &
- sleep 10
#
#Tests
- ./vendor/bin/phpunit
- php artisan dusk
services:
- mysql
definitions:
services:
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: 'testing'
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_USER: 'bitbucket'
MYSQL_PASSWORD: 'secret'
Error
Working bitbucket-pipeline.yml
image: lbausch/laravel-ci
pipelines:
default:
- step:
caches:
- composer
script:
#
# Composer
- composer install
#
#Writeable Folders
- chmod -R 777 ./storage
- chown -R www-data:www-data ./storage
- chmod -R 0755 vendor/laravel/dusk/bin/
#
# Setup
- ln -f -s .env.bitbucket .env
- php artisan key:generate
- php artisan storage:link
- php artisan migrate
- php artisan serve &
- sleep 5
#
#PHPUnit
- ./vendor/bin/phpunit
#
#Laravel Dusk
- php artisan dusk
services:
- mysql
definitions:
services:
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: 'testing'
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_USER: 'bitbucket'
MYSQL_PASSWORD: 'secret'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.