albibacsi

ci-1

Dec 4th, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. https://dzone.com/storage/assets/5628509-dzone-rc84-cipatternsandantipatterns.pdf
  2.  
  3. Automatically build the software at every change (eg. gerrit plugin for jenkins)
  4. Branching policy: all changes to a branch, verification, merge to master
  5. Tag or Label the build with unique name so that you can refer to run the same build at another time
  6. Send automated feedback from the CI server to development team members involved in the build (email, slack, ...)
  7. Fix broken builds (master) immediately!
  8. Create build scripts
  9. All builds should be run through a single command
  10. Run building on a dedicated machine
  11. Externalize all variable values from the application configuration into build-time properties.
  12. Use tokens so the build process knows where to add variable values
  13. Script database changes
  14. The data for each environment should be a subset of the whole, and scrubbed of sensitive information.
  15. Create a lightweight version of your database (only enough records to test functionality)
  16. Any data import or manipulation should be scripted so it can be performed via command line.
  17. Store the scripts for updating the database and its data in the version control system with the code and annotate appropriately
  18.  
  19. Tests running with every build ensures that nothing has been broken and that the code is maintaining superior quality.
  20. The build scripts should include running tests against all code in the project. Tests should be as comprehensive as possible and can include unit tests, end-to-end tests, smoke tests, or UI tests. Testing should be done on all new code.
  21.  
  22. Create smoke tests that can be used by CI servers, developers, QA, and testing as a pre-check to confirm the most important functionality as they work, or before committing resources to a full build.
Advertisement
Add Comment
Please, Sign In to add comment