A
A
AstonMartin2019-12-18 09:12:33
git
AstonMartin, 2019-12-18 09:12:33

How to properly organize deployment and tests?

Hello!
Situation:
- We are developing several web projects on php/mysql/vue/js, repositories in Bitbacket, deploy via teamcity
- There is practically no division into branches
- No auto tests
- docker is not used
- the team is small, there is no dedicated qa
Task:
- Translate the development into branches - For each branch
, automatically create a separate web environment in a test environment for visual testing
- Implement automatic tests and run them for all commits
Solution:
In TeamCity, make a deployment that, on each commit : branch from the repository
- Runs a test environment via docker for this branch on the domain: branch-name.test.domain.com (if such an environment is already running, it kills the old one and starts the new one)
- Runs tests and, accordingly, signals the success of their execution (or separate commands through teamcity, or a script in the dockerfile)
Is this the optimal solution?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question