Skip to content

Commit 29aef7e

Browse files
author
João Granado
committed
Add travis-ci configuration
1 parent 166fac1 commit 29aef7e

File tree

4 files changed

+35
-3
lines changed

4 files changed

+35
-3
lines changed

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# angular-oauth2
1+
# angular-oauth2 [![Build Status](https://travis-ci.org/seegno/angular-oauth2.svg)](https://travis-ci.org/seegno/angular-oauth2)
22

33
AngularJS OAuth2 authentication module written in ES6.
44

karma.conf.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11

2+
/**
3+
* Module dependencies.
4+
*/
5+
6+
var argv = require('yargs').argv;
7+
28
/**
39
* Karma.
410
*/
511

612
module.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',

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,23 @@
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"

0 commit comments

Comments
 (0)