diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..70968940 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: node_js +node_js: + - "0.12" +before_script: + - npm install -g gulp + - npm install -g bower + - npm install + - bower install +script: + - gulp lint + - gulp build-prod + - gulp test \ No newline at end of file diff --git a/package.json b/package.json index bb198d1d..de5687a4 100644 --- a/package.json +++ b/package.json @@ -32,9 +32,11 @@ "jasmine-core": "^2.3.4", "json-concat": "0.0.0", "karma": "^0.12.36", - "karma-chrome-launcher": "^0.1.12", "karma-jasmine": "^0.3.5", + "karma-mocha-reporter": "^1.0.2", + "karma-phantomjs-launcher": "^0.2.0", "main-bower-files": "^2.6.2", + "phantomjs": "^1.9.17", "run-sequence": "^1.0.2", "uglify-js": "^2.4.19" } diff --git a/test/karma.conf.js b/test/karma.conf.js index 03f3c6cc..c1db9aee 100644 --- a/test/karma.conf.js +++ b/test/karma.conf.js @@ -14,21 +14,13 @@ module.exports = function(config) { '../build/app*.js', 'tests/**/*.js' ], - // list of files to exclude - exclude: [], - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: {}, - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ['progress'], + reporters: ['mocha'], port: 9876, colors: true, // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG logLevel: config.LOG_INFO, autoWatch: false, - browsers: ['Chrome'], + browsers: ['PhantomJS'], singleRun: false }); };