From 224944dac73fd9efd6de1ac2cbe6428249205927 Mon Sep 17 00:00:00 2001 From: Elisa Jasinska Date: Mon, 19 Sep 2016 00:06:41 +0200 Subject: [PATCH] adding coveralls --- .travis.yml | 13 ++++++++----- README.md | 2 ++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index f14df8b..ae7eb95 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ python: install: - pip install -r requirements.txt - pip install . +- pip install coveralls deploy: provider: pypi user: dbarroso @@ -14,9 +15,11 @@ deploy: branch: master script: - cd test/unit -- nosetests -v TestFortiOSDriver:TestGetterFortiOSDriver.test_get_bgp_neighbors -- nosetests -v TestFortiOSDriver:TestGetterFortiOSDriver.test_get_environment -- nosetests -v TestFortiOSDriver:TestGetterFortiOSDriver.test_get_facts -- nosetests -v TestFortiOSDriver:TestGetterFortiOSDriver.test_get_interfaces -- nosetests -v TestFortiOSDriver:TestGetterFortiOSDriver.test_get_interfaces_counters +- nosetests --with-coverage --cover-package napalm_fortios -v TestFortiOSDriver:TestGetterFortiOSDriver.test_get_bgp_neighbors +- nosetests --with-coverage --cover-package napalm_fortios -v TestFortiOSDriver:TestGetterFortiOSDriver.test_get_environment +- nosetests --with-coverage --cover-package napalm_fortios -v TestFortiOSDriver:TestGetterFortiOSDriver.test_get_facts +- nosetests --with-coverage --cover-package napalm_fortios -v TestFortiOSDriver:TestGetterFortiOSDriver.test_get_interfaces +- nosetests --with-coverage --cover-package napalm_fortios -v TestFortiOSDriver:TestGetterFortiOSDriver.test_get_interfaces_counters - cd ../.. +- coverage combine test/unit/.coverage +after_success: coveralls diff --git a/README.md b/README.md index bde95cf..9ac8884 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ [![PyPI](https://img.shields.io/pypi/v/napalm-fortios.svg)](https://pypi.python.org/pypi/napalm-fortios) [![PyPI](https://img.shields.io/pypi/dm/napalm-fortios.svg)](https://pypi.python.org/pypi/napalm-fortios) [![Build Status](https://travis-ci.org/napalm-automation/napalm-fortios.svg?branch=master)](https://travis-ci.org/napalm-automation/napalm-fortios) +[![Coverage Status](https://coveralls.io/repos/github/napalm-automation/napalm-fortios/badge.svg?branch=master)](https://coveralls.io/github/napalm-automation/napalm-fortios) + # napalm-fortios