Travis CI examples

Travis CI Continuous Integration service (self-check code on each git push) has free private builds for educational users, and free public builds for all.

Free continuous integration services

  • free Travis CI can build on MacOS and Linux (Ubuntu 14.04 currently).
  • free continuous integration solution building on Linux, Mac and Windows is from Gitlab.
  • free Windows build CI solution is Appveyor.
  • Codeship is another CI choice.

Continuous integration examples

Travis-CI can compile in almost any language, across operation system versions and compiler versions.

Here are a few categories of simple multi-platform builds.

Quick Start Travis-CI

  1. Create a free travis-ci.org account–perhaps using your Github credentials
  2. add a repository to Travis-CI
  3. copy a .travis.yml template from one of the examples above–for Python, a tests/test.py file is expected. Make some very simple test, perhaps look at one of the examples for ideas.

Travis-CI output

The key point is that Travis CI considers only stderr == / != 0 for pass/fail:

stderr outcome
== 0 PASS
!= 0 FAIL

A third case is an ERROR in setup, perhaps a misconfigured setup.py in your project or missing prereq.

Leave a Comment