Permalink
Browse files

Added travis.ci support

  • Loading branch information...
1 parent 3502dbc commit 34cc2924c5948dc46f19a6e57b346e70dcb0eb07 Aleksey Ivanov committed Feb 26, 2013
Showing with 17 additions and 26 deletions.
  1. +3 −0 .travis.yml
  2. +10 −20 Gruntfile.js
  3. +1 −1 README.md
  4. +3 −4 package.json
  5. +0 −1 test/css-url-edit_test.js
View
@@ -0,0 +1,3 @@
+language: node_js
+node_js:
+ - 0.8
View
@@ -4,9 +4,6 @@ module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
- nodeunit: {
- files: ['test/**/*_test.js'],
- },
jshint: {
options: {
jshintrc: '.jshintrc'
@@ -21,28 +18,21 @@ module.exports = function(grunt) {
src: ['test/**/*.js']
},
},
- watch: {
- gruntfile: {
- files: '<%= jshint.gruntfile.src %>',
- tasks: ['jshint:gruntfile']
- },
- lib: {
- files: '<%= jshint.lib.src %>',
- tasks: ['jshint:lib', 'nodeunit']
- },
- test: {
- files: '<%= jshint.test.src %>',
- tasks: ['jshint:test', 'nodeunit']
- },
- },
+ vows: {
+ all: {
+ options: {
+ reporter: "spec",
+ },
+ src: ["test/*.js"]
+ }
+ }
});
// These plugins provide necessary tasks.
- grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-contrib-jshint');
- grunt.loadNpmTasks('grunt-contrib-watch');
+ grunt.loadNpmTasks("grunt-vows");
// Default task.
- grunt.registerTask('default', ['jshint', 'nodeunit']);
+ grunt.registerTask('default', ['jshint', 'vows']);
};
View
@@ -1,4 +1,4 @@
-# css-url-edit
+# css-url-edit [![Build Status](https://secure.travis-ci.org/iadramelk/css-url-edit.png)](http://travis-ci.org/iadramelk/css-url-edit)
Collection of helpers for css url manipulations.
View
@@ -25,14 +25,13 @@
"node": ">=0.8.0"
},
"scripts": {
- "test": "grunt vows"
+ "test": "grunt"
},
"devDependencies": {
+ "vows": "~0.7.0",
"grunt": "~0.4.0",
"grunt-contrib-jshint": "~0.1.1",
- "grunt-contrib-watch": "~0.2.0",
- "grunt-vows": "~0.0.0",
- "vows": "~0.7.0"
+ "grunt-vows": "~0.4.0"
},
"keywords": []
}
@@ -3,7 +3,6 @@
var vows = require( 'vows' ),
assert = require( 'assert' ),
fs = require( 'fs' ),
- path = require( 'path' ),
file = fs.readFileSync( './test/css/urls.css', 'utf-8' ),
URLS = require( '../lib/css-url-edit');

0 comments on commit 34cc292

Please sign in to comment.