Continuous Integration


Teaching: 5 min
Exercises: 10 min
  • How can I tell what state my project is actually in?

  • Explain how continuous integration works.

  • Configure continuous integration for a small software project.

Lint Your Code

  1. Find and install a lint-like tool for your preferred language and run it on your code.
  2. What does it complain about?
  3. Which of its complaints do you disagree with?

Setting Up Continuous Integration

Follow the steps in this tutorial to set up Travis-CI testing for the SNDS repository. How long did it take you to set this up?

Key Points

  • Continuous integration rebuilds and/or re-tests software every time something changes.

  • Use continuous integration to check changes before they are inspected.

  • Check style as well as correctness.

  • Adopt a widely-used pre-defined coding style rather than inventing one of your own.