Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions dusk.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
- [Codeship](#running-tests-on-codeship)
- [Heroku CI](#running-tests-on-heroku-ci)
- [Travis CI](#running-tests-on-travis-ci)
- [GitLab CI](#running-tests-on-gitlab-ci)

<a name="introduction"></a>
## Introduction
Expand Down Expand Up @@ -1317,3 +1318,26 @@ To run your Dusk tests on Travis CI, we will need to use the "sudo-enabled" Ubun

script:
- php artisan dusk

<a name="running-tests-on-gitlab-ci"></a>
### GitLab CI

To run Dusk tests on [GitLab CI](https://about.gitlab.com/features/gitlab-ci-cd/), add the following to your `.gitlab-ci.yml` file:

stages:
- test

browser_test:
image: laratools/ci:7.2
stage: test
before_script:
- composer install --prefer-dist --no-interaction --no-suggest
- cp .env.testing .env
- nohup php artisan serve &
script:
- php artisan dusk
artifacts:
paths:
- ./tests/Browser/screenshots
- ./tests/Browser/console
expire_in: 7 days