Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Korko
SecretSanta.fr
Commits
a591d987
Verified
Commit
a591d987
authored
Dec 04, 2020
by
Korko
Browse files
Improvment on gitlab CI
parent
7a94814e
Pipeline
#369474
failed
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.env.example
View file @
a591d987
...
...
@@ -14,7 +14,7 @@ DB_PASSWORD=
CACHE_DRIVER=file
MAIL_
DRIV
ER=smtp
MAIL_
MAIL
ER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
...
...
.gitlab-ci.yml
View file @
a591d987
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment