Merge pull request #821 from urbit/fix-ci-usage-error

Fix for CI vere usage error
This commit is contained in:
Joe Bryan 2018-09-24 20:44:04 -04:00 committed by GitHub
commit 88f2f9b959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 12 deletions

View File

@ -2,7 +2,7 @@ require! <[ split ]>
{through} = require 'promise-streams'
{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

View File

@ -1 +1 @@
ab4b327e82ff4ee21a332df8ccc426ed7c7a1897
89479463e5a39ef9ede4e5c414ca5c5721520100

View File

@ -8,6 +8,8 @@ export class Urbit
@pty = pty.spawn \urbit args
@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 "starting vere with the following arguments:"
console.log args
#
@last-output = Date.now()
@pty.on \data ~> @last-output = Date.now()

View File

@ -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)->