Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
413f7d31
Commit
413f7d31
authored
Jun 13, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
force chrome to produce debug output as it runs in CI
parent
86a2d9bf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
.gitlab-ci.yml
.gitlab-ci.yml
+3
-0
config/karma.config.js
config/karma.config.js
+9
-1
No files found.
.gitlab-ci.yml
View file @
413f7d31
...
...
@@ -448,13 +448,16 @@ karma:
<<
:
*except-docs
variables
:
BABEL_ENV
:
"
coverage"
CHROME_LOG_FILE
:
"
chrome_debug.log"
script
:
-
bundle exec rake karma
coverage
:
'
/^Statements
*:
(\d+\.\d+%)/'
artifacts
:
name
:
coverage-javascript
expire_in
:
31d
when
:
always
paths
:
-
chrome_debug.log
-
coverage-javascript/
coverage
:
...
...
config/karma.config.js
View file @
413f7d31
...
...
@@ -21,7 +21,14 @@ module.exports = function(config) {
var
karmaConfig
=
{
basePath
:
ROOT_PATH
,
browsers
:
[
'
ChromeHeadless
'
],
browsers
:
[
'
ChromeDebug
'
],
customLaunchers
:
{
ChromeDebug
:
{
base
:
'
ChromeHeadless
'
,
flags
:
[
'
--enable-logging
'
,
'
--v=1
'
],
displayName
:
'
Chrome
'
}
},
frameworks
:
[
'
jasmine
'
],
files
:
[
{
pattern
:
'
spec/javascripts/test_bundle.js
'
,
watched
:
false
},
...
...
@@ -33,6 +40,7 @@ module.exports = function(config) {
reporters
:
[
progressReporter
],
webpack
:
webpackConfig
,
webpackMiddleware
:
{
stats
:
'
errors-only
'
},
logLevel
:
config
.
LOG_DEBUG
,
};
if
(
process
.
env
.
BABEL_ENV
===
'
coverage
'
||
process
.
env
.
NODE_ENV
===
'
coverage
'
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment