Skip to content

Commit

Permalink
add check to ApplicationView (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
tagantroy authored Jan 6, 2019
1 parent 2b66df9 commit 1481419
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import com.malinskiy.marathon.cli.config.DeserializeModule
import com.malinskiy.marathon.cli.config.time.InstantTimeProviderImpl
import com.malinskiy.marathon.log.MarathonLogging
import com.xenomachina.argparser.ArgParser
import com.xenomachina.argparser.SystemExitException
import com.xenomachina.argparser.mainBody

private val logger = MarathonLogging.logger {}
Expand All @@ -39,6 +40,10 @@ fun main(args: Array<String>): Unit = mainBody(
val marathon = Marathon(configuration = configuration)
UsageAnalytics.enable = this.analyticsTracking
UsageAnalytics.tracker.trackEvent(Event(TrackActionType.RunType, "cli"))
marathon.run()
val success = marathon.run()
if (!success && !configuration.ignoreFailures) {
throw SystemExitException("Build failed", 1)
}
success
}
}

0 comments on commit 1481419

Please sign in to comment.