Skip to content

Commit

Permalink
Prepare the package for Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
porada committed Jan 12, 2014
1 parent 77e70b5 commit fe35925
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: node_js
node_js:
- "0.10"
5 changes: 3 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = function(grunt) {

watch: {
files: ['src/**/*', 'test/**/*'],
tasks: ['concat', 'karma:watch']
tasks: ['concat', 'karma:continuous']
},

karma: {
Expand All @@ -46,12 +46,13 @@ module.exports = function(grunt) {
test: {
browsers: ['Chrome', 'Firefox']
},
watch: {
continuous: {
browsers: ['PhantomJS']
}
}
});

grunt.registerTask('default', ['concat']);
grunt.registerTask('test', ['karma:test']);
grunt.registerTask('test:ci', ['concat', 'karma:continuous']);
};
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# angular-semver-sort
# angular-semver-sort [![Build Status](https://travis-ci.org/monterail/angular-semver-sort.png)](https://travis-ci.org/monterail/angular-semver-sort)

> Angular.js filter for ordering collections by [semantic version number](http://semver.org).
Expand Down
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
"main": "angular-semver-sort.js",
"ignore": [
".gitignore",
"package.json",
".travis.yml",
"Gruntfile.js",
"package.json"
],
"dependencies": {
"angular": "~1.2.8"
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@
"grunt-contrib-watch": "~0.5.3",
"grunt-karma": "~0.6.2",
"should": "~2.1.1"
},
"scripts": {
"preinstall": "npm install -g grunt-cli bower && bower install",
"test": "grunt test:ci"
}
}
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe('Filter: semverSort', function () {
describe('Filter: semverSort', function() {
var semverSort;

beforeEach(function() {
Expand Down

0 comments on commit fe35925

Please sign in to comment.