Validating .travis.yml files

Validating your .travis.yml file before committing it reduces common build errors such as

  • invalid YAML
  • missing language key
  • unsupported runtime versions of Ruby, PHP, OTP, etc
  • deprecated features or runtime aliases

Online Validation

Validate your .travis.yml online by entering your github repository or by pasting the contents of your .travis.yml into the form.

Command line Validation

To install the command line client, which requires Ruby 1.9.3 and RubyGems:

gem install travis --no-rdoc --no-ri

To run the command line lint tool:

# from any directory
travis lint [path to your .travis.yml]