From 0519772a6fe96f15bc01cf1253bd9a284368fd45 Mon Sep 17 00:00:00 2001 From: Joe Bryan Date: Tue, 5 Feb 2019 19:01:32 -0500 Subject: [PATCH] [CI] measure memory with |mass before tests, and after +solid --- .travis/test.js | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.travis/test.js b/.travis/test.js index 8b0c14ea50..0e93248265 100644 --- a/.travis/test.js +++ b/.travis/test.js @@ -9,7 +9,7 @@ var actions = runner.actions var args = ['-B', 'urbit.pill', '-A', '..', '-cSF', 'zod', 'zod']; var urbit = new Urbit(args); -// XX upstream the following into runner-js +// XX upstream this into runner-js // function rePill(urb) { return new Promise(function(resolve,reject){ @@ -59,6 +59,11 @@ function rePill(urb) { return read.pipe(write) }) + // XX find a better way to add this to the promise chain + // + .then(function(){ + return barMass(urb); + }) .catch(function(err){ return reject(err) }); @@ -67,6 +72,16 @@ function rePill(urb) { }) } +// XX upstream this into runner-js +// +function barMass(urb) { + return urb.line("|mass") + .then(function(){ + return urb.expectEcho("%ran-mass") + .then(function(){ return urb.resetListeners(); }) + }) +} + Promise.resolve(urbit) // XX temporary // send ctrl-x to select dojo @@ -79,15 +94,14 @@ Promise.resolve(urbit) .then(function() { return urbit }) }) .then(actions.safeBoot) +.then(function(){ + return barMass(urbit); +}) .then(actions.test) .then(actions.testCores) .then(actions.testRenderers) .then(function(){ - return urbit.line("|mass") - .then(function(){ - return urbit.expectEcho("%ran-mass") - .then(function(){ return urbit.resetListeners(); }) - }) + return barMass(urbit); }) .then(function(){ return rePill(urbit);