Add linting to Travis builds

Fixes #268.