tag:help.appveyor.com,2012-11-13:/discussions/questions/36778-how-to-allow-build-to-continue-running-even-if-one-of-the-test_script-stmt-is-failingAppVeyor: Discussion 2019-06-17T21:01:12Ztag:help.appveyor.com,2012-11-13:Comment/471850952019-04-17T13:27:22Z2019-04-17T13:27:22ZHow to allow build to continue running, even if one of the test_script stmt is failing?<div><p>Sounds like you need to separate your build into jobs via a <a href="https://www.appveyor.com/docs/build-configuration/#build-matrix">build matrix</a>.</p>
<p>We can give guidance if necessary, but post full yaml if thats the case.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/471850952019-04-17T14:20:29Z2019-04-17T14:20:29ZHow to allow build to continue running, even if one of the test_script stmt is failing?<div><p>can i give conditions [if - else], instead of job matrix ?</p></div>Tejal Tannatag:help.appveyor.com,2012-11-13:Comment/471850952019-04-17T17:21:36Z2019-04-17T17:21:36ZHow to allow build to continue running, even if one of the test_script stmt is failing?<div><p>Try to wrap it into PowerShell script like this:</p>
<pre>
<code>$success = $true
cmd /c npm run project1
if (-not $?) {$success = $?}
cmd /c npm run project2
if (-not $?) {$success = $?}
cmd /c npm run project3
if (-not $?) {$success = $?}
if (-not $success) {throw "at least one step failed"}</code>
</pre></div>Ilya Finkelshteyn