Skip to content

Commit 3dea977

Browse files
author
Alex Ross
committed
Add Travis CI
1 parent 3438402 commit 3dea977

4 files changed

Lines changed: 18 additions & 2 deletions

File tree

.jscsrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,9 @@
88
"requireSpacesInFunctionExpression": {
99
"beforeOpeningRoundBrace": true
1010
},
11-
"disallowMultipleVarDecl": null
11+
"disallowMultipleVarDecl": null,
12+
"requireTrailingComma": {
13+
"ignoreSingleLine": true,
14+
"ignoreSingleValue": true
15+
}
1216
}

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: node_js
2+
3+
node_js:
4+
- '4.2.1'
5+
6+
before_script:
7+
- npm install -g bower
8+
- bower install
9+
- npm install -g grunt-cli

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"url": "https://github.com/aleross/angular-segment-analytics"
77
},
88
"main": "segment.min.js",
9+
"scripts": {
10+
"test": "grunt test"
11+
},
912
"bugs": "https://github.com/aleross/angular-segment-analytics/issues",
1013
"keywords": [
1114
"angular",

test/segmentConfigSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('segmentConfig', function () {
2626

2727
function badConstant() {
2828
module('ngSegment', function ($provide) {
29-
$provide.constant('segmentConfig', { apiKey: null, });
29+
$provide.constant('segmentConfig', { apiKey: null });
3030
});
3131

3232
inject(function (segment) {});

0 commit comments

Comments
 (0)