Remove test-server task

This commit is contained in:
Matthew Riley MacPherson 2014-05-16 16:59:40 -04:00
parent 7175337841
commit 1b2bf3a8ce
2 changed files with 4 additions and 36 deletions

View File

@ -139,14 +139,8 @@ module.exports = exports = function(grunt) {
grunt.registerTask('publish', ['build', 'shell:publish-site']);
grunt.registerTask('serve', ['build', 'connect:test', 'watch']);
grunt.registerTask('site', ['shell:serve-site']);
grunt.registerTask('test-server', function() {
grunt.log.writeln('Starting web servers at test/server.coffee');
require('./test/server.coffee').listen(8181);
// Used to test cross-origin iframes.
require('./test/server.coffee').listen(8182);
});
// These are the test tasks we run regardless of Sauce Labs credentials.
var testTasks = [
'build',
'jshint',
@ -157,7 +151,9 @@ module.exports = exports = function(grunt) {
];
grunt.registerTask('test:local', testTasks.slice());
// Run tests on travis with Saucelabs.
// Run tests using Sauce Labs if we are on Travis or have locally
// available Sauce Labs credentials. Use `grunt test:local` to skip
// Sauce Labs tests.
if (process.env.TRAVIS_JOB_ID ||
(process.env.SAUCE_USERNAME && process.env.SAUCE_ACCESS_KEY)) {
testTasks.push('saucelabs-mocha');

View File

@ -1,28 +0,0 @@
'use strict'
express = require 'express'
app = express()
app_folder = process.cwd()
# Configuration.
app.configure ->
app.use express.bodyParser()
app.use express.methodOverride()
app.use app.router
app.use express.static("#{app_folder}")
app.use express.logger('dev') unless process.env.NODE_ENV
app.configure ->
app.use express.errorHandler
dumpExceptions: true
showStack: true
console.log ''
console.log 'Serving folder:'
console.log " * #{app_folder}"
module.exports = app