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
Boxiang Sun
gitlab-ce
Commits
d70be8f8
Commit
d70be8f8
authored
Jun 14, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run chrome with --no-sandbox flag to get around docker privilege limitations
parent
37577031
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
.gitlab-ci.yml
.gitlab-ci.yml
+0
-3
config/karma.config.js
config/karma.config.js
+5
-4
No files found.
.gitlab-ci.yml
View file @
d70be8f8
...
@@ -448,16 +448,13 @@ karma:
...
@@ -448,16 +448,13 @@ karma:
<<
:
*except-docs
<<
:
*except-docs
variables
:
variables
:
BABEL_ENV
:
"
coverage"
BABEL_ENV
:
"
coverage"
CHROME_LOG_FILE
:
"
chrome_debug.log"
script
:
script
:
-
bundle exec rake karma
-
bundle exec rake karma
coverage
:
'
/^Statements
*:
(\d+\.\d+%)/'
coverage
:
'
/^Statements
*:
(\d+\.\d+%)/'
artifacts
:
artifacts
:
name
:
coverage-javascript
name
:
coverage-javascript
expire_in
:
31d
expire_in
:
31d
when
:
always
paths
:
paths
:
-
chrome_debug.log
-
coverage-javascript/
-
coverage-javascript/
coverage
:
coverage
:
...
...
config/karma.config.js
View file @
d70be8f8
...
@@ -21,11 +21,13 @@ module.exports = function(config) {
...
@@ -21,11 +21,13 @@ module.exports = function(config) {
var
karmaConfig
=
{
var
karmaConfig
=
{
basePath
:
ROOT_PATH
,
basePath
:
ROOT_PATH
,
browsers
:
[
'
Chrome
Debug
'
],
browsers
:
[
'
Chrome
HeadlessNoSandbox
'
],
customLaunchers
:
{
customLaunchers
:
{
Chrome
Debug
:
{
Chrome
HeadlessNoSandbox
:
{
base
:
'
ChromeHeadless
'
,
base
:
'
ChromeHeadless
'
,
flags
:
[
'
--enable-logging
'
,
'
--v=1
'
],
// chrome cannot run in sandboxed mode inside a docker container unless it is run with
// escalated kernel privileges: docker run --cap-add=CAP_SYS_ADMIN
flags
:
[
'
--no-sandbox
'
],
displayName
:
'
Chrome
'
displayName
:
'
Chrome
'
}
}
},
},
...
@@ -40,7 +42,6 @@ module.exports = function(config) {
...
@@ -40,7 +42,6 @@ module.exports = function(config) {
reporters
:
[
progressReporter
],
reporters
:
[
progressReporter
],
webpack
:
webpackConfig
,
webpack
:
webpackConfig
,
webpackMiddleware
:
{
stats
:
'
errors-only
'
},
webpackMiddleware
:
{
stats
:
'
errors-only
'
},
logLevel
:
config
.
LOG_DEBUG
,
};
};
if
(
process
.
env
.
BABEL_ENV
===
'
coverage
'
||
process
.
env
.
NODE_ENV
===
'
coverage
'
)
{
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