Skip to content

Commit 97be935

Browse files
author
guylabs
committed
Add TravisCI support.
1 parent a73d2cf commit 97be935

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
language: node_js
2-
node_js: 0.10
2+
node_js: 0.10
3+
before_install: npm install -g grunt-cli
4+
install: npm install
5+
before_script: grunt build

Gruntfile.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ module.exports = function (grunt) {
1010

1111
grunt.initConfig({
1212
pkg: grunt.file.readJSON("package.json"),
13+
"bower-install-simple": {
14+
options: {
15+
color: true
16+
},
17+
dev: {
18+
options: {
19+
production: false
20+
}
21+
}
22+
},
1323
concat: {
1424
options: {
1525
banner: "(function() {\n\n'use strict';\n\n",
@@ -45,20 +55,11 @@ module.exports = function (grunt) {
4555
configFile: 'karma.conf.js',
4656
singleRun: true
4757
}
48-
},
49-
"bower-install-simple": {
50-
options: {
51-
color: true,
52-
directory: 'lib',
53-
production: false
54-
}
5558
}
5659
});
5760

58-
grunt.registerTask('default', ['bower-install-simple', 'karma:continuous', 'concat', 'uglify']);
59-
60-
grunt.registerTask('startTestServer', ['karma:unit:start']);
61-
grunt.registerTask('runTests', ['karma:unit:run']);
61+
grunt.registerTask('build', ['bower-install-simple:dev', 'karma:continuous', 'concat', 'uglify']);
6262
grunt.registerTask('test', ['karma:continuous']);
63+
grunt.registerTask('default', [ 'build' ]);
6364

6465
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"time-grunt": "~1.0.0",
2323
"load-grunt-tasks": "~1.0.0",
2424
"grunt-karma": "~0.9.0",
25+
"bower": "~1.3.12",
2526
"karma": "~0.12.23",
2627
"karma-jasmine": "~0.1.5",
2728
"karma-chrome-launcher": "~0.1.4",
@@ -34,6 +35,6 @@
3435
"url": "https://github.com/guylabs/angular-spring-data-rest/blob/master/LICENSE"
3536
},
3637
"scripts": {
37-
"test": "bower install; grunt"
38+
"test": "grunt test"
3839
}
3940
}

0 commit comments

Comments
 (0)