Commit 3f410bb5 authored by Albert Salim's avatar Albert Salim

Use `yarn karma` instead of `bundle exec rake karma`

`karma:tests` task is a wrapper around yarn, which doesn't need
bundler. Using `yarn karma` instead of bundle exec rake
allows us to skip lengthy bundle install in the karma job.
parent 0d0cb5b4
...@@ -171,14 +171,13 @@ frontend-fixtures-as-if-foss: ...@@ -171,14 +171,13 @@ frontend-fixtures-as-if-foss:
script: script:
- export BABEL_ENV=coverage CHROME_LOG_FILE=chrome_debug.log - export BABEL_ENV=coverage CHROME_LOG_FILE=chrome_debug.log
- date - date
- scripts/gitaly-test-spawn - yarn karma
- date
- bundle exec rake karma
karma: karma:
extends: extends:
- .karma-base - .karma-base
- .frontend:rules:default-frontend-jobs - .frontend:rules:default-frontend-jobs
needs: ["frontend-fixtures"]
coverage: '/^Statements *: (\d+\.\d+%)/' coverage: '/^Statements *: (\d+\.\d+%)/'
artifacts: artifacts:
name: coverage-javascript name: coverage-javascript
...@@ -196,6 +195,7 @@ karma-as-if-foss: ...@@ -196,6 +195,7 @@ karma-as-if-foss:
- .karma-base - .karma-base
- .frontend:rules:default-frontend-jobs-as-if-foss - .frontend:rules:default-frontend-jobs-as-if-foss
- .as-if-foss - .as-if-foss
needs: ["frontend-fixtures-as-if-foss"]
.jest-base: .jest-base:
extends: .frontend-job-base extends: .frontend-job-base
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment