diff --git a/gitlab-ci-free.yml b/gitlab-ci-free.yml index 8241c633e5a04761c867f788133fe321d84e6826..3052cbc6fdb492ca8071cf64873301462e8831e8 100644 --- a/gitlab-ci-free.yml +++ b/gitlab-ci-free.yml @@ -1,3 +1,6 @@ +variables: + WP_REPOSITORY: true + include: - project: 'wpdesk/gitlab-ci' ref: 'master' diff --git a/includes/deploy.yml b/includes/deploy.yml index 56d4021f3d3d95068286dd02c7068813f481beb6..c8d195ec0f66bfd6b1bc0a103f941ff41fce5189 100644 --- a/includes/deploy.yml +++ b/includes/deploy.yml @@ -46,7 +46,8 @@ hooks docs refresh: - deploy needs: - prepare prefixed vendor - - prepare translations + - job: prepare translations + optional: true - job: prepare npm assets optional: true artifacts: diff --git a/includes/prepare.yml b/includes/prepare.yml index cb68b0f0ae4ab257a9cbfaaa15a5e63f3063704b..58ac7802386bf0f8318aa9c18cc2d91a9584e488 100644 --- a/includes/prepare.yml +++ b/includes/prepare.yml @@ -58,10 +58,11 @@ prepare translations: stage: prepare-translations-and-tests dependencies: - prepare prefixed vendor - except: - variables: - - $IS_LIBRARY - - $IS_NPM_LIBRARY + rules: + - if: $WP_REPOSITORY + when: never + - if: $IS_LIBRARY || $IS_NPM_LIBRARY + when: never interruptible: true script: - composer generate-pot diff --git a/includes/tests/codeception-parallel.yml b/includes/tests/codeception-parallel.yml index 5f45038cef9d09c063724bfae1d1818ad7a6d0b5..06cade2371fff562e9e9eaba67a397791dd44b07 100644 --- a/includes/tests/codeception-parallel.yml +++ b/includes/tests/codeception-parallel.yml @@ -7,7 +7,8 @@ entrypoint: [""] needs: - prepare prefixed vendor - - prepare translations + - job: prepare translations + optional: true - job: prepare tests optional: true - job: prepare npm assets diff --git a/includes/tests/codeception.yml b/includes/tests/codeception.yml index d6480d4acd26f89b5822e71b34508554bb2dd00a..d5a790dcc2ae10adb9cf429bc68f7fccab25be90 100644 --- a/includes/tests/codeception.yml +++ b/includes/tests/codeception.yml @@ -30,7 +30,8 @@ stage: tests needs: - prepare prefixed vendor - - prepare translations + - job: prepare translations + optional: true - job: prepare tests optional: true - job: prepare npm assets