Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Laravel Dusk - Working configuration - Chrome Driver Exception

Sebastian Fix August 21, 2019

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

error.png

 

 

 

 

1 answer

1 accepted

0 votes
Answer accepted
Sebastian Fix August 21, 2019

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'

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events