mirror of
https://github.com/Modernizr/Modernizr.git
synced 2026-01-09 15:47:55 -05:00
Move over unit testing to use grunt for better output
This commit is contained in:
12
.travis.yml
12
.travis.yml
@@ -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
|
||||
5
grunt.js
5
grunt.js
@@ -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');
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
Reference in New Issue
Block a user