karma config for travis

This commit is contained in:
spalger 2015-07-27 17:39:46 -07:00
parent 0f6d59e258
commit 992e3968a7
4 changed files with 9 additions and 3 deletions

View file

@ -1 +1 @@
iojs-2
iojs-v2.4

View file

@ -1,5 +1,5 @@
language: node_js
node_js: '0.12'
node_js: 'iojs-v2.4'
install: npm install
script: npm test
sudo: false
@ -9,6 +9,9 @@ cache:
- node_modules
before_cache:
- rm -rf esvm/*/logs esvm/data_dir
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
notifications:
email:
- rashid.khan@elastic.co

View file

@ -13,6 +13,7 @@ module.exports = function (grunt) {
testUtilsDir: __dirname + '/src/testUtils',
configFile: __dirname + '/src/config/kibana.yml',
karmaBrowser: process.env.TRAVIS ? 'Firefox' : 'Chrome',
nodeVersion: '0.10.35',
platforms: ['darwin-x64', 'linux-x64', 'linux-x86', 'windows'],
services: [ [ 'launchd', '10.9'], [ 'upstart', '1.5'], [ 'systemd', 'default'], [ 'sysv', 'lsb-3.1' ] ],

View file

@ -3,7 +3,9 @@ module.exports = function (grunt) {
unit: {
configFile: 'karma.conf.js',
singleRun: true,
browsers: ['Chrome']
browsers: [
'<%= karmaBrowser %>'
]
}
};
};