diff --git a/.travis.yml b/.travis.yml index aeedcb9..b64b794 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,11 +27,16 @@ addons: - libssl-dev - libffi-dev -install: +before_install: - export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" - bash ./travis/build_relic.sh - - pip3 install msgpack + - pip3 install codecov coverage msgpack + +install: - pip3 install -v -e '.[dev]' script: - - python3 -m pytest + - coverage run --source=petrelic -m pytest + +after_success: + - codecov diff --git a/README.rst b/README.rst index 60c479b..c42783a 100644 --- a/README.rst +++ b/README.rst @@ -4,6 +4,9 @@ petrelic .. image:: https://travis-ci.org/spring-epfl/petrelic.svg?branch=master :target: https://travis-ci.org/spring-epfl/petrelic +.. image:: https://codecov.io/gh/spring-epfl/petrelic/branch/master/graph/badge.svg + :target: https://codecov.io/gh/spring-epfl/petrelic + ``petrelic`` is a Python wrapper around `RELIC`_. It provides a simple python interface to the BLS-381 pairing and RELIC's big number class. Our goals is to make it easy to prototype new cryptographic applications in Python using RELIC as the backend. In the future we aim to support a few other pairing curves as well. ``petrelic`` provides native, multiplicative and additive interfaces to `RELIC`_. You can use the one that you find most comfortable. ``petrelic`` overloads Python's binary operators to make computation with pairings easy. For example, here is how you would compute and verify a BLS signature using the multiplicative interface: