Skip to content

Instantly share code, notes, and snippets.

@jjcodes78
Last active July 7, 2017 10:13
Show Gist options
  • Save jjcodes78/a05e65563d07c0f56b2c0f46957faee7 to your computer and use it in GitHub Desktop.
Save jjcodes78/a05e65563d07c0f56b2c0f46957faee7 to your computer and use it in GitHub Desktop.
Laravel continuous integration config file with Laravel Dusk (browser tests) for Circle CI
machine:
php:
version: 7.1.3
node:
version: 8.1.0
dependencies:
override:
- npm install
- composer install --no-interaction
test:
pre:
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome-stable_current_amd64.deb
- "./vendor/laravel/dusk/bin/chromedriver-linux":
background: true
- cp .env._testing .env
- php artisan key:generate
- touch ./database/database.sqlite
- php artisan migrate
- "php artisan serve":
background: true
override:
- php ./vendor/phpunit/phpunit/phpunit
- php artisan dusk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment