From 783116aefb857f1c3ad2e53f1bb3b57280977d30 Mon Sep 17 00:00:00 2001 From: lsolesen Date: Sun, 15 Feb 2015 15:27:10 +0000 Subject: [PATCH] Travis CI integration --- .travis.yml | 3 +++ karma.conf.js | 2 +- package.json | 13 ++++++++----- 3 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..20fd86b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: + - 0.10 diff --git a/karma.conf.js b/karma.conf.js index 5f70007..e74973e 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -56,7 +56,7 @@ module.exports = function(config) { // - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`) // - PhantomJS // - IE (only Windows; has to be installed with `npm install karma-ie-launcher`) - browsers: ['Chrome'], + browsers: ['Chrome', 'PhantomJS'], // If browser does not capture in given timeout [ms], kill it diff --git a/package.json b/package.json index 7a5999a..dd781d9 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,16 @@ "description": "SelectNav.js is a JavaScript plugin that lets you convert your website navigation into a select drop-down menu. Used together with media queries it helps you to create a space saving, responsive navigation for small screen devices.", "main": "selectnav-new.js", "devDependencies": { - "karma": "~0.10.9", - "chai": "~1.9.0", - "mocha": "~1.17.1", - "karma-mocha": "~0.1.1" + "karma": "~0.12.31", + "chai": "~2.0.0", + "mocha": "~2.1.0", + "karma-mocha": "~0.1.10", + "karma-cli": "0.0.4", + "phantomjs": "~1.9.15", + "karma-phantomjs-launcher": "~0.1.4" }, "scripts": { - "test": "./node_modules/.bin/karma start --single-run" + "test": "./node_modules/.bin/karma start --single-run --browsers PhantomJS" }, "repository": { "type": "git",