Continuous integration with Travis & GitHub
Presented by Jean Cruypenynck/@nonatomiclabs
What is continuous integration?
- merge development branches with the main branch several times a day
- main branch automatically tested at every commit
- ensures that the product is always deliverable
Travis CI
- online service for CI
- free for public projects
- perfectly embedded with GitHub
Configuration steps
- sign up with your GitHub account
- choose the repository that you want to test
-
add a .travis.yml file to your repository with your build configuration
-
the next commit will trigger Travis
Build configuration
language: python
python:
- "2.6"
- "2.7"
- "3.4"
install:
- pip install pytest-pep8
script: py.test --pep8
Slack integration

- Go to "Configure Integrations" panel in Slack
- Add the given code to your .travis.yml configuration file
notifications:
slack: nonatomiclabs:v70RKis1I9cVYwFCjzre8KA1
Many other options
- pull requests support
- code coverage report
- Heroku deployment
- build matrix
- …
Thank you for your attention!
git clone http://github.com/filaton/basic_travis.git