Bitbucket Pipelines
We use Bitbucket Pipelines to automate the testing and deployment process. The configuration is stored in the bitbucket-pipelines.yml file in the root of the repository.
For each branch, we have a different pipeline configuration. The pipeline is triggered when a new commit is pushed to the branch and will run test suites and linters. The pipeline will also deploy the code to the staging server if the branch is develop and to the production server if the branch is master.