Skip to content

Commit a6977a2

Browse files
Merge pull request #14 from optimizely/aliabbasrizvi/add_coveralls
Introducing code coverage using Coveralls
2 parents af88ea1 + baadbd8 commit a6977a2

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

.coveragerc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[run]
2+
omit =
3+
optimizely/lib/pymmh3*

.coveralls.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
service_name: travis-ci

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ python:
33
- "2.7"
44
- "3.4"
55
install: "pip install -r requirements/core.txt;pip install -r requirements/test.txt"
6-
script: "nosetests"
6+
script: "nosetests --with-coverage --cover-package=optimizely"
7+
after_success:
8+
- coveralls

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#Optimizely Python SDK
22
[![Build Status](https://travis-ci.org/optimizely/python-sdk.svg?branch=master)](https://travis-ci.org/optimizely/python-sdk)
3+
[![Coverage Status](https://coveralls.io/repos/github/optimizely/python-sdk/badge.svg)](https://coveralls.io/github/optimizely/python-sdk)
34
[![Apache 2.0](https://img.shields.io/github/license/nebula-plugins/gradle-extra-configurations-plugin.svg)](http://www.apache.org/licenses/LICENSE-2.0)
45

56
This repository houses the Python SDK for Optimizely's server-side testing product, which is currently in private beta.

0 commit comments

Comments
 (0)