This document discusses patterns for continuous integration (CI). It describes common build patterns like automated builds and dependency management. It recommends performing a private build before committing code and integrating builds periodically. The document also recommends practices like sending automatic feedback from the CI server to developers, fixing build errors quickly, and generating documentation from builds. It suggests configuring builds to run independently from IDEs with a single command and on a dedicated machine. Database practices covered include externalizing configurations, using database sandbox environments, and upgrading databases with scripts. The document also discusses automated testing, code quality inspection, and deployment patterns like scripted deployment and environment rollback.