diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..baa0031d5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: + - 0.8 diff --git a/4chan_x.user.js b/4chan_x.user.js index 8c82cdb48..dd4a8bd4a 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -20,7 +20,7 @@ // @icon https://github.com/MayhemYDG/4chan-x/raw/stable/img/icon.gif // ==/UserScript== -/* 4chan X Alpha - Version 3.0.0 - 2012-09-26 +/* 4chan X Alpha - Version 3.0.0 - 2012-10-13 * http://mayhemydg.github.com/4chan-x/ * * Copyright (c) 2009-2011 James Campos diff --git a/README.md b/README.md index 874895ce8..65e275f29 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# Get 4chan X [HERE](http://mayhemydg.github.com/4chan-x/). +# 4chan X [![Build Status](https://secure.travis-ci.org/MayhemYDG/4chan-x.png?branch=master)](https://travis-ci.org/MayhemYDG/4chan-x) + +Get it [here](http://mayhemydg.github.com/4chan-x/). *** diff --git a/grunt.js b/grunt.js index ab74c94a5..2ca31c187 100644 --- a/grunt.js +++ b/grunt.js @@ -76,6 +76,13 @@ module.exports = function(grunt) { }, clean: { tmp:['tmp'] + }, + qunit: { + all: 'http://localhost:8000/test/index.html' + }, + server: { + port: 8000, + base: '.' } }); @@ -88,5 +95,6 @@ module.exports = function(grunt) { grunt.registerTask('release', 'concat:meta concat:latest default exec:commit exec:push'); grunt.registerTask('patch', 'bump'); grunt.registerTask('upgrade', 'bump:minor'); + grunt.registerTask('test', 'server qunit'); }; diff --git a/package.json b/package.json index fd4254c1a..877682033 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,9 @@ "version": "3.0.0", "author": "Nicolas Stepien ", "description": "Cross-browser userscript for maximum lurking on 4chan.", + "scripts": { + "test": "grunt test --verbose" + }, "repository": { "type": "git", "url": "https://github.com/MayhemYDG/4chan-x.git" @@ -12,7 +15,11 @@ "grunt-contrib-clean": "0.3.x", "grunt-contrib-coffee": "0.3.x", "grunt-exec": "0.3.x", - "grunt-image-embed": "0.0.x" + "grunt-image-embed": "0.0.x", + "qunitjs": "1.x.x" + }, + "devDependencies": { + "grunt": "0.3.x" }, "license": "MIT", "engines": { diff --git a/test/index.html b/test/index.html new file mode 100644 index 000000000..63f9faf3b --- /dev/null +++ b/test/index.html @@ -0,0 +1,18 @@ + + + + + QUnit + + + +
+ + + +