Continuous Integration is easy if you are ready for the definition of DONE (DoD). It is not only accepting a story as successfull after developped by a developer but it also includes a process which ends after deploying to live and ensuring that it works and does not cause a defect in the live system. Handling DONE actually means of CI. With Scrum there is always one shippable product at the end of each sprint. This shippable product has to include some new features. Definition of Done helps to Scrum to clear the definition of every stages of development, such providing checklist for discussion, estimationa and design, so it makes the user stories more understandable and applicable.
What Definition of Done includes:
Every stage can also have sub-stages, DoD should be prepeared to ensure that every step can be successfully implemented and if a failure occurs in a step, it can be solved by the help of DoD. See more about CI, CD