From 4628a96d7486326e0e1a39378c6d17be6c453896 Mon Sep 17 00:00:00 2001 From: Sergio Crisostomo Date: Wed, 11 Feb 2015 00:56:13 +0100 Subject: [PATCH] add file/http server to grunt file --- Gruntfile.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index 956113503..1870a3134 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,4 +1,14 @@ "use strict"; +var fs = require('fs'); +var path = require('path'); +var http = require('http'); +var build = (function(){ + // travis testing + if (process.env && process.env.BUILD) return process.env.BUILD == 'default' ? 'all' : 'nocompat'; + // local testing + else return process.argv[2] == null || process.argv[2] == 'all' ? 'all' : 'nocompat'; +})(); +require('./Tests/httpServer.js')(build); module.exports = function(grunt) {