Skip to content
Snippets Groups Projects
Unverified Commit 582f1bd8 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

ci: reduce number of concurrent jobs in quality stage + remove prepare stage

parent b40316be
No related branches found
No related tags found
No related merge requests found
image: code.podlibre.org:5050/podlibre/castopod-host:latest image: code.podlibre.org:5050/podlibre/castopod-host:latest
stages: stages:
- prepare
- quality - quality
- bundle - bundle
- release - release
cache: cache:
key: ${CI_COMMIT_REF_SLUG}
paths: paths:
- vendor/ - vendor/
- node_modules/ - .npm/
php-dependencies:
stage: prepare
script:
# Install all php dependencies
- composer install --prefer-dist --no-ansi --no-interaction --no-progress --ignore-platform-reqs
js-dependencies:
stage: prepare
script:
# Install all npm dependencies
- npm install
lint-commit-msg: lint-commit-msg:
stage: quality stage: quality
...@@ -30,39 +18,37 @@ lint-commit-msg: ...@@ -30,39 +18,37 @@ lint-commit-msg:
# lint commit message # lint commit message
- ./scripts/lint-commit.sh - ./scripts/lint-commit.sh
tests: lint-php:
stage: quality
script:
# run phpunit without code coverage
# TODO: add code coverage
- vendor/bin/phpunit --no-coverage
code-style:
stage: quality stage: quality
before_script:
# Install all php dependencies
- composer install --prefer-dist --no-ansi --no-interaction --no-progress --ignore-platform-reqs
script: script:
# check php code style # check php code style
- vendor/bin/ecs check --ansi - vendor/bin/ecs check --ansi
static-analysis:
stage: quality
script:
# phpstan - increase memory limit to 1GB to prevent script failure # phpstan - increase memory limit to 1GB to prevent script failure
- php -d memory_limit=1G vendor/bin/phpstan analyse --ansi - php -d memory_limit=1G vendor/bin/phpstan analyse --ansi
code-review:
stage: quality
script:
# run rector to check for php errors # run rector to check for php errors
- vendor/bin/rector process --dry-run --ansi - vendor/bin/rector process --dry-run --ansi
lint-js: lint-js:
stage: quality stage: quality
before_script:
# Install all npm dependencies
- npm ci --cache .npm --prefer-offline
script: script:
- npm run prettier - npm run prettier
- npm run typecheck - npm run typecheck
- npm run eslint - npm run eslint
- npm run stylelint - npm run stylelint
tests:
stage: quality
script:
# run phpunit without code coverage
# TODO: add code coverage
- vendor/bin/phpunit --no-coverage
bundle: bundle:
stage: bundle stage: bundle
script: script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment