function runScriptsSerially (scripts, context) {
    if (scripts.length === 0) {
        events.emit('verbose', 'No scripts found for hook "' + context.hook + '".');
    }
    return scripts.reduce(function (prevScriptPromise, nextScript) {
        return prevScriptPromise.then(function () {
            return runScript(nextScript, context);
        });
    }, Promise.resolve());
}