Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 2.03 KB

3-pull.md

File metadata and controls

56 lines (40 loc) · 2.03 KB

Create a pull request and see your progress - Travis CI and Coveralls

In this step, you will commit your changes, and create a pull request. This will kick off continuous integration and coverage reporting, which you can see from your pull request.

coveralls

  1. Take a look at:

You can see that the build is successfully passing, but the overall coverage is pretty low.

  1. Commit your new unit tests from the previous step to your fork of catinabox:
user@host:~$ git commit -a
  1. When you are happy with your commit and your changes, push them back to your fork:
user@host:~$ git push origin tutorial_wip
  1. Visit github and open a new pull request:

  2. https://github.com/keeppythonweird/catinabox

  3. Click on the Pull requests tab

  4. Click the New pull request button

  5. Click on the compare: drop down and select your branch in your fork.

  6. Click the Create pull request button. This will give you a chance to fill in the subject and description of your pull request.

  7. Click Create pull request to create your pull request.

More information is available in the github docs on creating pull requests.

  1. As soon as the pull request is created, you will see three checks run:

  2. Travis CI - Running all tests for python 2.7

  3. Travis CI - Running all tests for python 3.4

  4. Coveralls measuring the test coverage for your branch

  5. If you see a build failure, you can run all tests locally:

user@host:~$ python setup.py test

However if the failure is with the other major version of python (e.g. you are running 3.4 locally but the 2.7 build broke) you will not be able to reproduce the failure.