Verified Commit a591d987 authored by Korko's avatar Korko
Browse files

Improvment on gitlab CI

parent 7a94814e
Pipeline #369474 failed
......@@ -14,7 +14,7 @@ DB_PASSWORD=
CACHE_DRIVER=file
MAIL_DRIVER=smtp
MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
......
......@@ -10,6 +10,15 @@ stages:
- tests
- metrics
variables:
APP_ENV=local
APP_KEY=base64:GiV6POMQ3sJ98JfJjUrLp82zEGrzO7afosXaYG7n+Vo=
APP_DEBUG=true
DB_DATABASE=laravel
DB_USERNAME=root
GITHUB_SHA=$CI_COMMIT_SHA
GITHUB_REF=$CI_COMMIT_REF_NAME
composer:
stage: build
cache:
......@@ -18,8 +27,6 @@ composer:
- vendor/
script:
- composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts
- cp .env.example .env
- php artisan key:generate
artifacts:
expire_in: 1 month
paths:
......@@ -45,32 +52,45 @@ npm:
phpunit:
stage: tests
script:
- cp .env.example .env
- php artisan key:generate
- phpunit --coverage-text --colors=never
artifacts:
paths:
- ./storage/logs # for debugging
expire_in: 7 days
when: always
dusk-main:
stage: tests
script:
- cp .env.example .env
- php artisan key:generate
- BROWSERSTACK_BROWSER=WINDOWS_10_CHROME php artisan dusk
- BROWSERSTACK_BROWSER=WINDOWS_10_FIREFOX php artisan dusk
- BROWSERSTACK_BROWSER=WINDOWS_7_CHROME php artisan dusk
- BROWSERSTACK_BROWSER=WINDOWS_7_FIREFOX php artisan dusk
- BROWSERSTACK_BROWSER=MACOS_CATALINA_CHROME php artisan dusk
- BROWSERSTACK_BROWSER=MACOS_CATALINA_FIREFOX php artisan dusk
artifacts:
paths:
- ./storage/logs # for debugging
- ./tests/Browser/screenshots
- ./tests/Browser/console
expire_in: 7 days
when: always
dusk:
stage: tests
script:
- cp .env.example .env
- php artisan key:generate
- BROWSERSTACK_BROWSER=WINDOWS_10_EDGE php artisan dusk
- BROWSERSTACK_BROWSER=WINDOWS_10_IE php artisan dusk
- BROWSERSTACK_BROWSER=MACOS_CATALINA_SAFARI php artisan dusk
- BROWSERSTACK_BROWSER=MACOS_CATALINA_EDGE php artisan dusk
allow_failure: true
artifacts:
paths:
- ./storage/logs # for debugging
- ./tests/Browser/screenshots
- ./tests/Browser/console
expire_in: 7 days
when: always
php-metrics:
stage: metrics
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment