mirror of
https://github.com/localForage/localForage.git
synced 2026-02-01 15:32:04 +00:00
Remove test-server task
This commit is contained in:
parent
7175337841
commit
1b2bf3a8ce
12
Gruntfile.js
12
Gruntfile.js
@ -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');
|
||||
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user