File tree Expand file tree Collapse file tree 4 files changed +35
-3
lines changed Expand file tree Collapse file tree 4 files changed +35
-3
lines changed Original file line number Diff line number Diff line change 1+ language : node_js
2+
3+ sudo : false
4+
5+ before_script :
6+ - ./node_modules/.bin/bower install
7+ - export DISPLAY=:99.0
8+ - sh -e /etc/init.d/xvfb start
9+
10+ git :
11+ depth : 10
12+
13+ node_js :
14+ - iojs
15+
16+ cache :
17+ directories :
18+ - node_modules
19+ - bower_components
20+
Original file line number Diff line number Diff line change 1- # angular-oauth2
1+ # angular-oauth2 [ ![ Build Status ] ( https://travis-ci.org/seegno/angular-oauth2.svg )] ( https://travis-ci.org/seegno/angular-oauth2 )
22
33AngularJS OAuth2 authentication module written in ES6.
44
Original file line number Diff line number Diff line change 11
2+ /**
3+ * Module dependencies.
4+ */
5+
6+ var argv = require ( 'yargs' ) . argv ;
7+
28/**
39 * Karma.
410 */
511
612module . exports = function ( config ) {
713 config . set ( {
814 basePath : './' ,
9- browsers : [ 'Chrome' ] ,
15+ browsers : [ argv . browsers || 'Chrome' ] ,
1016 files : [
1117 'bower_components/angular/angular.js' ,
1218 'bower_components/angular-cookies/angular-cookies.js' ,
@@ -26,6 +32,7 @@ module.exports = function(config) {
2632 plugins : [
2733 'karma-browserify' ,
2834 'karma-chrome-launcher' ,
35+ 'karma-firefox-launcher' ,
2936 'karma-mocha' ,
3037 'karma-mocha-reporter' ,
3138 'karma-should' ,
Original file line number Diff line number Diff line change 4242 "karma" : " ^0.12.31" ,
4343 "karma-browserify" : " ^2.0.0" ,
4444 "karma-chrome-launcher" : " ^0.1.7" ,
45+ "karma-firefox-launcher" : " ^0.1.4" ,
4546 "karma-mocha" : " ^0.1.10" ,
4647 "karma-mocha-reporter" : " ^0.3.1" ,
4748 "karma-should" : " 0.0.1" ,
4849 "karma-sinon" : " ^1.0.4" ,
4950 "lodash" : " ^2.4.1" ,
50- "should" : " ^4.6.0"
51+ "should" : " ^4.6.0" ,
52+ "yargs" : " ^3.6.0"
5153 },
5254 "browser" : {
5355 "angular" : " ./bower_components/angular/angular.js" ,
5456 "angular-cookies" : " ./bower_components/angular-cookies/angular-cookies.js" ,
5557 "query-string" : " ./bower_components/query-string/query-string.js"
5658 },
59+ "scripts" : {
60+ "test" : " ./node_modules/.bin/gulp test --browsers Firefox"
61+ },
5762 "browserify-shim" : {
5863 "angular" : {
5964 "exports" : " angular"
You can’t perform that action at this time.
0 commit comments