From c9fb869cb293652232beba87e58ceb27d5d05e34 Mon Sep 17 00:00:00 2001 From: Laurent Girod Date: Tue, 7 Apr 2020 18:07:06 +0200 Subject: [PATCH] Integrate codecov. --- .travis.yml | 11 ++++++++--- README.rst | 3 +++ 2 files changed, 11 insertions(+), 3 deletions(-) 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: