Skip to content

Commit 8af2841

Browse files
author
Mads Møller
authored
add GitLab CI
1 parent 8a891e1 commit 8af2841

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

dusk.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
- [Codeship](#running-tests-on-codeship)
3737
- [Heroku CI](#running-tests-on-heroku-ci)
3838
- [Travis CI](#running-tests-on-travis-ci)
39+
- [GitLab CI](#running-tests-on-gitlab-ci)
3940

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

13181319
script:
13191320
- php artisan dusk
1321+
1322+
1323+
<a name="running-tests-on-gitlab-ci"></a>
1324+
### GitLab CI
1325+
1326+
To run Dusk tests on [GitLab CI](https://about.gitlab.com/features/gitlab-ci-cd/), add the following to `.gitlab-ci.yml`.
1327+
1328+
stages:
1329+
- test
1330+
1331+
browser_test:
1332+
image: laratools/ci:7.2
1333+
stage: test
1334+
before_script:
1335+
- composer install --prefer-dist --no-interaction --no-suggest
1336+
- cp .env.testing .env
1337+
- nohup php artisan serve &
1338+
script:
1339+
- php artisan dusk
1340+
artifacts:
1341+
paths:
1342+
- ./tests/Browser/screenshots
1343+
- ./tests/Browser/console
1344+
expire_in: 7 days

0 commit comments

Comments
 (0)