Skip to content
Snippets Groups Projects
Verified Commit 7a7b390f authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

feat: skip tranlations for repository plugins


Maybe it would be better to split workflow for paid and free plugins
(and definitely for libraries), but for now it should be enough to skip
prepare translations job and mark it optional in other stages.

Translations for free plugins are handled by WordPress repository, thus
there's no need to keep this job. Essentially, most plugins targeting
WordPress repository doesn't have its own translation files either.

Signed-off-by: default avatarBart Jaskulski <bjaskulski@protonmail.com>
parent 80b7368e
No related branches found
No related tags found
No related merge requests found
variables:
WP_REPOSITORY: true
include: include:
- project: 'wpdesk/gitlab-ci' - project: 'wpdesk/gitlab-ci'
ref: 'master' ref: 'master'
......
...@@ -46,7 +46,8 @@ hooks docs refresh: ...@@ -46,7 +46,8 @@ hooks docs refresh:
- deploy - deploy
needs: needs:
- prepare prefixed vendor - prepare prefixed vendor
- prepare translations - job: prepare translations
optional: true
- job: prepare npm assets - job: prepare npm assets
optional: true optional: true
artifacts: artifacts:
......
...@@ -58,10 +58,11 @@ prepare translations: ...@@ -58,10 +58,11 @@ prepare translations:
stage: prepare-translations-and-tests stage: prepare-translations-and-tests
dependencies: dependencies:
- prepare prefixed vendor - prepare prefixed vendor
except: rules:
variables: - if: $WP_REPOSITORY
- $IS_LIBRARY when: never
- $IS_NPM_LIBRARY - if: $IS_LIBRARY || $IS_NPM_LIBRARY
when: never
interruptible: true interruptible: true
script: script:
- composer generate-pot - composer generate-pot
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
entrypoint: [""] entrypoint: [""]
needs: needs:
- prepare prefixed vendor - prepare prefixed vendor
- prepare translations - job: prepare translations
optional: true
- job: prepare tests - job: prepare tests
optional: true optional: true
- job: prepare npm assets - job: prepare npm assets
......
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
stage: tests stage: tests
needs: needs:
- prepare prefixed vendor - prepare prefixed vendor
- prepare translations - job: prepare translations
optional: true
- job: prepare tests - job: prepare tests
optional: true optional: true
- job: prepare npm assets - job: prepare npm assets
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment