I
I
IvanN7772019-02-11 08:24:50
Ruby on Rails
IvanN777, 2019-02-11 08:24:50

Rails, is it necessary to run tests when deploying to Mina or Capistrano?

I read the article
https://1.bp.blogspot.com/-aHRERZHMD80/Wn2u4oHTljI...
I think tests are needed during deployment.
Now we are running tests in Travis Сi, after each push to the git branches and publishing to the slack.
But let's say programmer A didn't look at the tests and pushed to production?
Can run tests in a deploy with a test database while pushing to production?
Or the right way.
I need opinions, I want to understand how to do it right.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artur Bordenyuk, 2019-02-11
@HighQuality

Right the way you like it.
We use bitbucket pipelines. When the tests fail, the deployment is not available. On staging, deployment is automatic, and on prod - by click.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question