Skip to content

Commit

Permalink
Merge pull request #8 from edx/renzo/codecov
Browse files Browse the repository at this point in the history
Switch to Codecov
  • Loading branch information
Renzo Lucioni committed Jan 5, 2016
2 parents a99f375 + f32de92 commit 4a28204
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ cache:
- $HOME/.cache/pip
install:
- pip install -U pip wheel
- pip install -U codecov
- make requirements
- pip install coveralls
script:
- make validate
after_success: coveralls
after_success:
- codecov

deploy:
provider: pypi
Expand Down
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
edX Ecommerce Worker |Travis|_ |Coveralls|_
============================================
edX Ecommerce Worker |Travis|_ |Codecov|_
==========================================
.. |Travis| image:: https://travis-ci.org/edx/ecommerce-worker.svg?branch=master
.. _Travis: https://travis-ci.org/edx/ecommerce-worker

.. |Coveralls| image:: https://coveralls.io/repos/edx/ecommerce-worker/badge.svg?branch=master
.. _Coveralls: https://coveralls.io/r/edx/ecommerce-worker?branch=master
.. |Codecov| image:: http://codecov.io/github/edx/ecommerce-worker/coverage.svg?branch=master
.. _Codecov: http://codecov.io/github/edx/ecommerce-worker?branch=master

The Celery tasks contained herein are used to implement asynchronous order fulfillment and other features requiring the asynchronous execution of many small, common operations.

Expand Down
2 changes: 1 addition & 1 deletion ecommerce_worker/fulfillment/v1/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def fulfill_order(self, order_number):
logger.info('Requesting fulfillment of order [%s].', order_number)
api.orders(order_number).fulfill.put()
except exceptions.HttpClientError as exc:
status_code = exc.response.status_code
status_code = exc.response.status_code # pylint: disable=no-member
if status_code == 406:
# The order is not fulfillable. Therefore, it must be complete.
logger.info('Order [%s] has already been fulfilled. Ignoring.', order_number)
Expand Down

0 comments on commit 4a28204

Please sign in to comment.