Permalink
Browse files

Move over unit testing to use grunt for better output

  • Loading branch information...
1 parent d90b536 commit a4e882e6382f8a204c4825488eeb6a71dab86591 @ryanseddon ryanseddon committed Aug 30, 2012
Showing with 8 additions and 19 deletions.
  1. +3 −9 .travis.yml
  2. +5 −0 grunt.js
  3. +0 −10 test/js/server.js
View
@@ -1,12 +1,6 @@
language: node_js
node_js:
- - 0.7
-notifications:
- email: false
+ - 0.8
before_script:
- - "export DISPLAY=:99.0"
- - "sh -e /etc/init.d/xvfb start"
- - npm install connect
- - sudo node test/js/server.js &
- - sleep 5
-script: phantomjs test/qunit/run-qunit.js 'http://localhost:80/test/index.html?filter=!caniuse.com'
+ - npm install grunt
+script: grunt travis --verbose
View
@@ -11,6 +11,9 @@ module.exports = function( grunt ) {
' * Copyright (c) Faruk Ates, Paul Irish, Alex Sexton\n' +
' * Available under the BSD and MIT licenses: www.modernizr.com/license/\n */'
},
+ qunit: {
+ files: ['test/index.html']
+ },
lint: {
files: [
'grunt.js',
@@ -61,4 +64,6 @@ module.exports = function( grunt ) {
grunt.registerTask('default', 'min');
+ // Travis CI task.
+ grunt.registerTask('travis', 'qunit');
};
View
@@ -1,10 +0,0 @@
-var connect = require('connect'),
- args = process.argv.slice(2),
- folder = args[0] || '/../../',
- port = args[1] || '80';
-
-var server = connect.createServer(
- connect.static(__dirname + folder)
-).listen(port);
-
-console.log("Server started on port %s in %s", port, folder);

0 comments on commit a4e882e

Please sign in to comment.