It should bail, I can test though.
On Mar 19, 2014 4:15 PM, "Vladimir Agafonkin" <notifications@github.com>
wrote:

> In build/publish.sh:
>
> > @@ -0,0 +1,32 @@
> > +#!/bin/bash
> > +
> > +#make sure deps are up to date
> > +rm -r node_modules
> > +npm install
> > +
> > +# get current version
> > +VERSION=$(npm ls --json=true pouchdb | grep version | awk '{ print $2}'| sed -e 's/^"//'  -e 's/"$//')
> > +
> > +# Build
> > +git checkout -b build
> > +npm test
>
> will the script go on if the tests fail?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/Leaflet/Leaflet/pull/2561/files#r10769221>
> .
>