Here is the recipe provided by Russell:
To enable Travis flake8:
1: Visit the following page (which eventually will have complete instructions)
https://developer.lsst.io/stack/adding-a-new-package.html?highlight=travis#configuring-github-repositories
2: Save the following to the package root as a file named .travis.yaml
sudo: false
language: python
matrix:
include:
- python: '3.6'
install:
- pip install flake8
script: flake8
3: Enable Travis for the repository by visiting:
https://travis-ci.org/lsst/<repo_name> (e.g. https://travis-ci.org/lsst/afw)
Click the "Activate" button
We will change to travis-ci.com at some point, but LSST will say when;
see https://docs.travis-ci.com/user/open-source-on-travis-ci-com/ for more info
4: Make sure Travis runs
If you have a ticket branch then push a change to it. If you are done working on that branch
then use "git commit --amend" followed by "git push --force" to push a new SHA for your work.
That should start Travis running. You can see this on github by viewing your branch
(a pull request may be needed, but I don't think so).
5: In github (after Travis runs for the first time) you can require it to pass before merging.
Settings > Branches:
x Require branches to be up to date before merging (this will already be checked)
x Continuous Integration Travis/CI
Here is the recipe provided by Russell: