Developers should run private builds prior to committing code to the repository.
Here is a sample developer session using Git:
- Check out the code you will alter from the repository:
- Go into the version controlled folder.
- git checkout -b new_branch.
- Make changes to the code:
- Edit myFile.go.
- Get the latest system changes from the repository:
- git pull.
- Run a build that executes of all your unit tests and possibly integration tests in your local machine.
- Commit your code changes to the repository.
- The CI build should automatically trigger a build and run any tests in the repository.
- The CI build should also do other tasks, such as reporting and calling other services if need be.