Skip to content

Commit

Permalink
Add code coverage metric (#15)
Browse files Browse the repository at this point in the history
* Add codecov report

* Move codecov in after_script sectiuon

* Fix travis install

* Set travis dist: xenial

* Fix travis pip install

* Add codecov badge in README
  • Loading branch information
imcatta1 committed Jan 31, 2019
1 parent b16a609 commit 674c5f0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
language: generic

dist: xenial

services:
- docker

Expand All @@ -7,9 +10,15 @@ env:
- ROS_DISTRO="indigo"
- ROS_DISTRO="kinetic"
- ROS_DISTRO="lunar"
- ROS_DISTRO="melodic"
- ROS_DISTRO="melodic"

install:
- git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci.git .ci
- pip install --user codecov nose

script:
- .ci/travis.sh

after_script:
- cd mapek_framework/src && nosetests --cover-package=mapek_framework --with-coverage && codecov

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ROS MAPE-K Framework

[![Build Status](https://travis-ci.org/imcatta/ros_mapek_framework.svg?branch=master)](https://travis-ci.org/imcatta/ros_mapek_framework)
[![codecov](https://codecov.io/gh/imcatta/ros_mapek_framework/branch/master/graph/badge.svg)](https://codecov.io/gh/imcatta/ros_mapek_framework)
[![Documentation Status](https://readthedocs.org/projects/ros-mape-k-framework/badge/?version=latest)](https://ros-mape-k-framework.readthedocs.io/en/latest/?badge=latest)

A simple framework that help developers build [ROS](http://ros.org) applications based on the MAPE-K pattern. Full documentation is available at [ros-mape-k-framework.readthedocs.io](https://ros-mape-k-framework.readthedocs.io).
Expand Down

0 comments on commit 674c5f0

Please sign in to comment.