summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authordotnetCarpenter <jon.ronnenberg@gmail.com>2016-10-08 17:28:14 -0200
committerdotnetCarpenter <jon.ronnenberg@gmail.com>2016-10-08 17:28:14 -0200
commit2b5fa4fdc7c3b4c2fecb7327484f8d861cc2e68d (patch)
tree971a1c84773251acd223eb0f112b5606c05b4aa5 /.config
parent5c18e89d271fd515eaa2cbd2fb393fe133fb0bbc (diff)
downloadsvg.js-2b5fa4fdc7c3b4c2fecb7327484f8d861cc2e68d.tar.gz
svg.js-2b5fa4fdc7c3b4c2fecb7327484f8d861cc2e68d.zip
switch back to firefox for testing
Diffstat (limited to '.config')
-rw-r--r--.config/chrome_linux.js42
-rw-r--r--.config/karma.conf.js15
2 files changed, 1 insertions, 56 deletions
diff --git a/.config/chrome_linux.js b/.config/chrome_linux.js
deleted file mode 100644
index 5820a19..0000000
--- a/.config/chrome_linux.js
+++ /dev/null
@@ -1,42 +0,0 @@
-'use strict'
-
-if(process.platform === 'linux') {
- const child_process = require('child_process')
- const exec = child_process.exec
- const execSync = bind2(child_process.execSync, { encoding: 'utf8' })//spawnSync
- const browsers = ['google-chrome', 'chromium-browser']
-
- const findBrowser = msg => {
- console.log(msg)
- const browserString = /\/(.*)$/
- const browser = msg.match(browserString)
- console.log(browsers)
- if(browsers[browser]) browsers[browser] = true
- }
-
- const tryCompose = (f, parameter) => {
- //FIXME:
- const x = f.splice(0, 1)[0]
- if(Array.isArray(f) && f.length > 0) return tryCompose(f, parameter)
- //
-
- try {
- return x(parameter)
- }
- catch(e) {
- console.warn(e.message)
- }
- }
-
- tryCompose([findBrowser, execSync], 'which google-chrome')
- //findBrowser(execSync('which chromium-browser'))
-
- if(browsers[0]) return
- if(!browsers[0] && browsers[1]) exec('export CHROME_BIN=chromium-browser')
- if(browsers.every(b => !b)) console.warn('You need to install either Chrome or Chromium to run the test suite.')
-
-}
-
-function bind2(f, bound) {
- return (parameter) => f(parameter, bound)
-} \ No newline at end of file
diff --git a/.config/karma.conf.js b/.config/karma.conf.js
index 2a7dae4..ad256e2 100644
--- a/.config/karma.conf.js
+++ b/.config/karma.conf.js
@@ -65,16 +65,7 @@ module.exports = function(config) {
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
- browsers: ['Chrome'],
-
-
- customLaunchers: {
- Chrome_travis_ci: {
- base: 'Chrome',
- flags: ['--no-sandbox']
- }
- },
-
+ browsers: ['Firefox'],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
@@ -84,8 +75,4 @@ module.exports = function(config) {
// how many browser should be started simultaneous
concurrency: Infinity
})
-
- if(process.env.TRAVIS){
- config.browsers = ['Chrome_travis_ci'];
- }
}