Can't you do that with Codeship's built-in exit command?
https://documentation.codeship.com/basic/builds-and-configuration/run-command-if-other-fails/
Summer Sale! All accounts are 50% off this week.
Right now, I'm running an automated Codeship deployment of a Laravel project. As part of the build/test phase, we create a temporary testing database and run the migrations to ensure they all run correctly.
One problem: when php artisan migrate fails, it doesn't seem to return a 'hard error', that would block the rest of the script from running. Instead, it gets treated as normal output, and the script continues on its merry, possibly pushing broken migrations to a staging server.
Is there a way to make php artisan migrate errors stop the rest of the script from running?
Can't you do that with Codeship's built-in exit command?
https://documentation.codeship.com/basic/builds-and-configuration/run-command-if-other-fails/
Please or to participate in this conversation.