diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-04 12:08:32 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-04 12:08:32 +0300 |
commit | 7d19df2d34a9803d9f077c16315ba919b7ae2aa2 (patch) | |
tree | 80a824f477c1b450a1f082576a00d6851f3c6582 /.gitlab/ci/frontend.gitlab-ci.yml | |
parent | cebee31a0483ef7f2cade3d6dde0a53a68e86cc6 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to '.gitlab/ci/frontend.gitlab-ci.yml')
-rw-r--r-- | .gitlab/ci/frontend.gitlab-ci.yml | 46 |
1 files changed, 32 insertions, 14 deletions
diff --git a/.gitlab/ci/frontend.gitlab-ci.yml b/.gitlab/ci/frontend.gitlab-ci.yml index b1699ce147f..15479bd59d5 100644 --- a/.gitlab/ci/frontend.gitlab-ci.yml +++ b/.gitlab/ci/frontend.gitlab-ci.yml @@ -38,7 +38,7 @@ - "doc/README.md" # Some RSpec test rely on this file # Make sure to update all the similar patterns in other CI config files if you modify these patterns -.code-backstage-patterns-qa: &code-backstage-patterns-qa +.code-backstage-qa-patterns: &code-backstage-qa-patterns - ".gitlab/ci/**/*" - ".{eslintignore,gitattributes,nvmrc,prettierrc,stylelintrc,yamllint}" - ".{codeclimate,eslintrc,gitlab-ci,haml-lint,haml-lint_todo,rubocop,rubocop_todo,scss-lint}.yml" @@ -118,7 +118,7 @@ gitlab:assets:compile pull-push-cache: - <<: *if-not-canonical-namespace when: never - <<: *if-master-refs - changes: *code-backstage-patterns-qa + changes: *code-backstage-qa-patterns when: on_success cache: policy: pull-push @@ -129,7 +129,7 @@ gitlab:assets:compile pull-cache: - <<: *if-not-canonical-namespace when: never - <<: *if-default-refs - changes: *code-backstage-patterns-qa + changes: *code-backstage-qa-patterns when: on_success cache: policy: pull @@ -163,7 +163,7 @@ compile-assets pull-push-cache: extends: .compile-assets-metadata rules: - <<: *if-master-refs - changes: *code-backstage-patterns-qa + changes: *code-backstage-qa-patterns when: on_success cache: policy: pull-push @@ -176,7 +176,7 @@ compile-assets pull-push-cache foss: - <<: *if-not-ee when: never - <<: *if-master-refs - changes: *code-backstage-patterns-qa + changes: *code-backstage-qa-patterns when: on_success cache: policy: pull-push @@ -186,7 +186,7 @@ compile-assets pull-cache: extends: .compile-assets-metadata rules: - <<: *if-default-refs - changes: *code-backstage-patterns-qa + changes: *code-backstage-qa-patterns when: on_success cache: policy: pull @@ -199,26 +199,24 @@ compile-assets pull-cache foss: - <<: *if-not-ee when: never - <<: *if-default-refs - changes: *code-backstage-patterns-qa + changes: *code-backstage-qa-patterns when: on_success cache: policy: pull key: "assets-compile:v8:foss" -.only-code-frontend-job-base: +.frontend-job-base: extends: - .default-tags - .default-retry - .default-cache - - .default-only - .default-before_script - - .only:changes-code-backstage - .use-pg9 stage: test needs: ["setup-test-env", "compile-assets pull-cache"] .karma-base: - extends: .only-code-frontend-job-base + extends: .frontend-job-base variables: # we override the max_old_space_size to prevent OOM errors NODE_OPTIONS: --max_old_space_size=3584 @@ -231,6 +229,10 @@ compile-assets pull-cache foss: karma: extends: .karma-base + rules: + - <<: *if-default-refs + changes: *code-backstage-patterns + when: on_success coverage: '/^Statements *: (\d+\.\d+%)/' artifacts: name: coverage-javascript @@ -246,10 +248,16 @@ karma: karma-foss: extends: - .karma-base - - .only-ee-as-if-foss + - .as-if-foss + rules: + - <<: *if-not-ee + when: never + - <<: *if-default-refs + changes: *code-backstage-patterns + when: on_success .jest-base: - extends: .only-code-frontend-job-base + extends: .frontend-job-base script: - scripts/gitaly-test-spawn - date @@ -264,6 +272,10 @@ karma-foss: jest: extends: .jest-base + rules: + - <<: *if-default-refs + changes: *code-backstage-patterns + when: on_success artifacts: name: coverage-frontend expire_in: 31d @@ -278,7 +290,13 @@ jest: jest-foss: extends: - .jest-base - - .only-ee-as-if-foss + - .as-if-foss + rules: + - <<: *if-not-ee + when: never + - <<: *if-default-refs + changes: *code-backstage-patterns + when: on_success cache: policy: pull |