summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-12-05 10:43:38 +0000
committerMike Greiling <mike@pixelcog.com>2018-12-05 10:43:38 +0000
commitd133c874fa4c7b531b74ed8ac801022864c1f08f (patch)
tree59a2d5163dbcfdded7aa1c25d49ac2bb69739d28 /.gitlab-ci.yml
parent9816bb05a3d226dadbc4ed8f1d559f046879612b (diff)
parenta8a13d3259374a1b25ca4a3e954bca563a66a532 (diff)
downloadgitlab-ce-d133c874fa4c7b531b74ed8ac801022864c1f08f.tar.gz
Merge branch 'winh-add-jest' into 'master'
Setup Jest test environment See merge request gitlab-org/gitlab-ce!23406
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9eac37df74b..2e822f73e9f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -699,6 +699,32 @@ karma:
reports:
junit: junit_karma.xml
+jest:
+ <<: *dedicated-no-docs-and-no-qa-pull-cache-job
+ <<: *use-pg
+ dependencies:
+ - compile-assets
+ - setup-test-env
+ script:
+ - scripts/gitaly-test-spawn
+ - date
+ - bundle exec rake karma:fixtures
+ - date
+ - yarn jest --ci --coverage
+ artifacts:
+ name: coverage-frontend
+ expire_in: 31d
+ when: always
+ paths:
+ - coverage-frontend/
+ - junit_jest.xml
+ reports:
+ junit: junit_jest.xml
+ cache:
+ key: jest
+ paths:
+ - tmp/jest/jest/
+
code_quality:
<<: *dedicated-no-docs-no-db-pull-cache-job
image: docker:stable