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 )
2
2
3
3
AngularJS OAuth2 authentication module written in ES6.
4
4
Original file line number Diff line number Diff line change 1
1
2
+ /**
3
+ * Module dependencies.
4
+ */
5
+
6
+ var argv = require ( 'yargs' ) . argv ;
7
+
2
8
/**
3
9
* Karma.
4
10
*/
5
11
6
12
module . exports = function ( config ) {
7
13
config . set ( {
8
14
basePath : './' ,
9
- browsers : [ 'Chrome' ] ,
15
+ browsers : [ argv . browsers || 'Chrome' ] ,
10
16
files : [
11
17
'bower_components/angular/angular.js' ,
12
18
'bower_components/angular-cookies/angular-cookies.js' ,
@@ -26,6 +32,7 @@ module.exports = function(config) {
26
32
plugins : [
27
33
'karma-browserify' ,
28
34
'karma-chrome-launcher' ,
35
+ 'karma-firefox-launcher' ,
29
36
'karma-mocha' ,
30
37
'karma-mocha-reporter' ,
31
38
'karma-should' ,
Original file line number Diff line number Diff line change 42
42
"karma" : " ^0.12.31" ,
43
43
"karma-browserify" : " ^2.0.0" ,
44
44
"karma-chrome-launcher" : " ^0.1.7" ,
45
+ "karma-firefox-launcher" : " ^0.1.4" ,
45
46
"karma-mocha" : " ^0.1.10" ,
46
47
"karma-mocha-reporter" : " ^0.3.1" ,
47
48
"karma-should" : " 0.0.1" ,
48
49
"karma-sinon" : " ^1.0.4" ,
49
50
"lodash" : " ^2.4.1" ,
50
- "should" : " ^4.6.0"
51
+ "should" : " ^4.6.0" ,
52
+ "yargs" : " ^3.6.0"
51
53
},
52
54
"browser" : {
53
55
"angular" : " ./bower_components/angular/angular.js" ,
54
56
"angular-cookies" : " ./bower_components/angular-cookies/angular-cookies.js" ,
55
57
"query-string" : " ./bower_components/query-string/query-string.js"
56
58
},
59
+ "scripts" : {
60
+ "test" : " ./node_modules/.bin/gulp test --browsers Firefox"
61
+ },
57
62
"browserify-shim" : {
58
63
"angular" : {
59
64
"exports" : " angular"
You can’t perform that action at this time.
0 commit comments