mirror of
https://github.com/urbit/shrub.git
synced 2024-12-15 21:03:10 +03:00
Merge pull request #821 from urbit/fix-ci-usage-error
Fix for CI vere usage error
This commit is contained in:
commit
88f2f9b959
@ -2,7 +2,7 @@ require! <[ split ]>
|
|||||||
{through} = require 'promise-streams'
|
{through} = require 'promise-streams'
|
||||||
{Urbit,ERROR} = require './runner.ls'
|
{Urbit,ERROR} = require './runner.ls'
|
||||||
|
|
||||||
urbit = new Urbit process.argv[2 to]
|
urbit = new Urbit process.argv[3 to]
|
||||||
|
|
||||||
urbit.expect ERROR .then -> process.exit 1
|
urbit.expect ERROR .then -> process.exit 1
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
ab4b327e82ff4ee21a332df8ccc426ed7c7a1897
|
89479463e5a39ef9ede4e5c414ca5c5721520100
|
@ -8,6 +8,8 @@ export class Urbit
|
|||||||
@pty = pty.spawn \urbit args
|
@pty = pty.spawn \urbit args
|
||||||
@pty.on \data ~> @stdout.write it # TODO pipe?
|
@pty.on \data ~> @stdout.write it # TODO pipe?
|
||||||
console.log "FIXME Running Ubuntu 14.04, which causes a libtinfo version info warning. Should update to 16.04."
|
console.log "FIXME Running Ubuntu 14.04, which causes a libtinfo version info warning. Should update to 16.04."
|
||||||
|
console.log "starting vere with the following arguments:"
|
||||||
|
console.log args
|
||||||
#
|
#
|
||||||
@last-output = Date.now()
|
@last-output = Date.now()
|
||||||
@pty.on \data ~> @last-output = Date.now()
|
@pty.on \data ~> @last-output = Date.now()
|
||||||
|
@ -13,6 +13,16 @@ Promise.resolve urbit
|
|||||||
<- urb.expect-echo "%dojo-booted" .then
|
<- urb.expect-echo "%dojo-booted" .then
|
||||||
urb.reset-listeners!
|
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)->
|
.then (urb)->
|
||||||
urb.note "Testing compilation"
|
urb.note "Testing compilation"
|
||||||
errs = {} #REVIEW stream reduce?
|
errs = {} #REVIEW stream reduce?
|
||||||
@ -44,16 +54,6 @@ Promise.resolve urbit
|
|||||||
errs := Object.keys errs
|
errs := Object.keys errs
|
||||||
if errs.length => throw Error "in #errs"
|
if errs.length => throw Error "in #errs"
|
||||||
urb.reset-listeners!
|
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 ->
|
.then ->
|
||||||
urbit.exit 0
|
urbit.exit 0
|
||||||
.catch (err)->
|
.catch (err)->
|
||||||
|
Loading…
Reference in New Issue
Block a user