Skip to content

Commit

Permalink
Add TravisCI support.
Browse files Browse the repository at this point in the history
  • Loading branch information
guylabs committed Oct 24, 2014
1 parent a73d2cf commit 97be935
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
language: node_js
node_js: 0.10
node_js: 0.10
before_install: npm install -g grunt-cli
install: npm install
before_script: grunt build
23 changes: 12 additions & 11 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ module.exports = function (grunt) {

grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
"bower-install-simple": {
options: {
color: true
},
dev: {
options: {
production: false
}
}
},
concat: {
options: {
banner: "(function() {\n\n'use strict';\n\n",
Expand Down Expand Up @@ -45,20 +55,11 @@ module.exports = function (grunt) {
configFile: 'karma.conf.js',
singleRun: true
}
},
"bower-install-simple": {
options: {
color: true,
directory: 'lib',
production: false
}
}
});

grunt.registerTask('default', ['bower-install-simple', 'karma:continuous', 'concat', 'uglify']);

grunt.registerTask('startTestServer', ['karma:unit:start']);
grunt.registerTask('runTests', ['karma:unit:run']);
grunt.registerTask('build', ['bower-install-simple:dev', 'karma:continuous', 'concat', 'uglify']);
grunt.registerTask('test', ['karma:continuous']);
grunt.registerTask('default', [ 'build' ]);

};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"time-grunt": "~1.0.0",
"load-grunt-tasks": "~1.0.0",
"grunt-karma": "~0.9.0",
"bower": "~1.3.12",
"karma": "~0.12.23",
"karma-jasmine": "~0.1.5",
"karma-chrome-launcher": "~0.1.4",
Expand All @@ -34,6 +35,6 @@
"url": "https://github.com/guylabs/angular-spring-data-rest/blob/master/LICENSE"
},
"scripts": {
"test": "bower install; grunt"
"test": "grunt test"
}
}

0 comments on commit 97be935

Please sign in to comment.