diff --git a/.travis/test.ls b/.travis/test.ls index 8dd19ef28..f0772cb8e 100644 --- a/.travis/test.ls +++ b/.travis/test.ls @@ -13,6 +13,16 @@ Promise.resolve urbit <- urb.expect-echo "%dojo-booted" .then urb.reset-listeners! ] +.then (urb)-> + urb.note "Running /===/tests" + errs = "" #REVIEW stream reduce? + urb.every /(\/[ -~]* (FAILED|CRASHED))/, ([_,result])-> + if !errs => urb.warn "First error" + errs += "\n #result" + <- urb.line "+test, =defer |, =seed `@uvI`(shaz %reproducible)" .then + <- urb.expect-echo "%ran-tests" .then + if errs => throw Error errs + urb.reset-listeners! .then (urb)-> urb.note "Testing compilation" errs = {} #REVIEW stream reduce? @@ -44,16 +54,6 @@ Promise.resolve urbit errs := Object.keys errs if errs.length => throw Error "in #errs" urb.reset-listeners! -.then (urb)-> - urb.note "Running /===/tests" - errs = "" #REVIEW stream reduce? - urb.every /(\/[ -~]* (FAILED|CRASHED))/, ([_,result])-> - if !errs => urb.warn "First error" - errs += "\n #result" - <- urb.line "+test, =defer |, =seed `@uvI`(shaz %reproducible)" .then - <- urb.expect-echo "%ran-tests" .then - if errs => throw Error errs - urb.reset-listeners! .then -> urbit.exit 0 .catch (err)->