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

Path

parent ccdbf450
Pipeline #377385 failed with stages
in 41 seconds
......@@ -31,7 +31,7 @@ stages:
sail:
stage: prebuild
script:
- sail up -d
- ./vendor/bin/sail up -d
composer:
stage: build
......@@ -40,7 +40,7 @@ composer:
paths:
- vendor/
script:
- sail composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts
- ./vendor/bin/sail composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts
artifacts:
expire_in: 1 month
paths:
......@@ -54,8 +54,8 @@ npm:
paths:
- node_modules/
script:
- sail npm install
- sail npm run production
- ./vendor/bin/sail npm install
- ./vendor/bin/sail npm run production
artifacts:
expire_in: 1 month
paths:
......@@ -66,7 +66,7 @@ npm:
phpunit:
stage: tests
script:
- sail php ./vendor/bin/phpunit --coverage-text --colors=never
- ./vendor/bin/sail phpunit --coverage-text --colors=never
artifacts:
paths:
- ./storage/logs # for debugging
......@@ -76,7 +76,7 @@ phpunit:
dusk:
stage: tests
script:
- sail dusk
- ./vendor/bin/sail dusk
artifacts:
paths:
- ./storage/logs # for debugging
......@@ -88,8 +88,8 @@ dusk:
php-metrics:
stage: metrics
script:
- sail composer global require --dev phpmetrics/phpmetrics
- sail php ./vendor/bin/phpmetrics --report-html=var/php-metrics app tests
- ./vendor/bin/sail composer global require --dev phpmetrics/phpmetrics
- ./vendor/bin/sail phpmetrics --report-html=var/php-metrics app tests
artifacts:
paths:
- var/php-metrics/
......@@ -100,7 +100,7 @@ php-mess-detector:
script:
- wget -c https://phpmd.org/static/latest/phpmd.phar
- wget -c https://gist.githubusercontent.com/slayerfat/2b3cc4faf94d2863b505/raw/5229a520c69010c6c13fd9a66d14309c214c241a/phpmd-ruleset.xml
- php phpmd.phar app,tests text phpmd-ruleset.xml
- ./vendor/bin/sail php phpmd.phar app,tests text phpmd-ruleset.xml
artifacts:
paths:
- var/phpmd.html
......@@ -109,57 +109,57 @@ php-mess-detector:
php-assumptions:
stage: metrics
script:
- composer global require --dev rskuipers/php-assumptions
- phpa app tests
- ./vendor/bin/sail composer global require --dev rskuipers/php-assumptions
- ./vendor/bin/sail phpa app tests
allow_failure: true
composer-unused:
stage: metrics
script:
- wget https://github.com/icanhazstring/composer-unused/releases/latest/download/composer-unused.phar
- php composer-unused.phar --no-progress --excludePackage=spatie/laravel-blade-javascript
- ./vendor/bin/sail php composer-unused.phar --no-progress --excludePackage=spatie/laravel-blade-javascript
allow_failure: true
php-copypaste-detector:
stage: metrics
script:
- wget https://phar.phpunit.de/phpcpd.phar
- php phpcpd.phar --fuzzy app tests
- ./vendor/bin/sail php phpcpd.phar --fuzzy app tests
allow_failure: true
php-security-checker:
stage: metrics
script:
- wget https://get.sensiolabs.org/security-checker.phar
- php security-checker.phar security:check composer.lock
- ./vendor/bin/sail php security-checker.phar security:check composer.lock
allow_failure: true
php-churn:
stage: metrics
script:
- composer global require --dev bmitch/churn-php
- churn run app tests
- ./vendor/bin/sail php ./vendor/bin/churn run app tests
allow_failure: true
php-code-analyzer:
stage: metrics
script:
- wget https://github.com/wapmorgan/PhpCodeAnalyzer/releases/download/1.0.6/phpca.phar
- php phpca.phar app
- ./vendor/bin/sail php phpca.phar app
allow_failure: true
php-code-fixer:
stage: metrics
script:
- wget https://github.com/wapmorgan/PhpCodeFixer/releases/download/2.0.23/phpcf-2.0.23.phar
- php phpcf-2.0.23.phar app tests
- ./vendor/bin/sail php phpcf-2.0.23.phar app tests
allow_failure: true
php-insights:
stage: metrics
script:
- composer global require --dev nunomaduro/phpinsights
- phpinsights
- ./vendor/bin/sail composer global require --dev nunomaduro/phpinsights
- ./vendor/bin/sail phpinsights
allow_failure: true
phpstan:
......@@ -167,5 +167,5 @@ phpstan:
script:
- composer global require --dev nunomaduro/larastan
- wget https://gist.githubusercontent.com/Korko/19ad2705a8a8632819aa8370fcb631b8/raw/d79f918004273b8823a5530e57141119eba69ac6/phpstan.neon
- phpstan analyse -c phpstan.neon
- ./vendor/bin/sail phpstan analyse -c phpstan.neon
allow_failure: true
\ No newline at end of file
Markdown is supported
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