summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2018-08-29 22:45:53 +0200
committerWinnie Hellmann <winnie@gitlab.com>2018-12-05 09:24:42 +0100
commita8a13d3259374a1b25ca4a3e954bca563a66a532 (patch)
treefd579414080576ea8fa0305645d29d325372f6f2 /.gitlab-ci.yml
parent8cd5004b350ef342f66956c11272dad1328f6526 (diff)
downloadgitlab-ce-a8a13d3259374a1b25ca4a3e954bca563a66a532.tar.gz
Setup Jest test environment
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 79ec1b881d4..9058621d83d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -698,6 +698,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