]> source.dussan.org Git - jquery.git/commitdiff
Tests: correctly set sudo in travis config, not karma config
authorTimmy Willison <4timmywil@gmail.com>
Tue, 16 Jan 2018 16:17:33 +0000 (11:17 -0500)
committerTimmy Willison <4timmywil@gmail.com>
Tue, 16 Jan 2018 16:17:33 +0000 (11:17 -0500)
.travis.yml
Gruntfile.js

index 4fa82ae7ac8b92dc0b0d5e78bec0cc16b1d7262e..4ac42174e6113d318948f1a21a3c06349f1c33cd 100644 (file)
@@ -1,5 +1,9 @@
 language: node_js
-sudo: false
+# Temporary workaround.
+# Karma can't access the binaries on travis
+# without root access.
+# See https://github.com/travis-ci/travis-ci/issues/8836
+sudo: required
 node_js:
 - "4"
 - "6"
index 655d0956187802b2aff7362283ad30e2caa9937b..431e87557748c7d12ba5a208e1d56c04e7c88e68 100644 (file)
@@ -220,13 +220,7 @@ module.exports = function( grunt ) {
                        },
                        main: {
                                browsers: [ "ChromeHeadless" ],
-                               singleRun: true,
-
-                               // Temporary workaround.
-                               // Karma can't access the binaries on travis
-                               // without root access.
-                               // See https://github.com/travis-ci/travis-ci/issues/8836
-                               sudo: "required"
+                               singleRun: true
                        },
                        chrome: {
                                browsers: [ "Chrome" ]