I’ve posted recently about my build setup and that has been working well. In summary, on certain builds I chain multiple commands together to run Jest tests, then RSpec and finally the Middleman build. However the tests take quite a while to complete and having all of the commands running one after the other means it takes a while to see a preview.
Is it possible to just have the deploy previews setup to run the Middleman build whilst all the branch deploys run the Jest and RSpec tests? This way our team could quickly view the deploy while the tests are finishing and then we also still get the tests notifications in GitHub to see if changes can be merged. I have tried this but once the tests finish, the build machine is expecting to find content in my publish directory which clearly won’t exist in this case. Is it possible to exit straight after the tests with a success flag or is it even possible to do this?
Any help or alternate suggestions would be greatly appreciated.