Skip to content
Permalink
Browse files

travis+codecov

  • Loading branch information...
youknowone committed Aug 11, 2016
1 parent f80d77d commit 83f2ef53112e3f95ad2c08727d30cc85d2d7c44d
Showing with 48 additions and 2 deletions.
  1. +23 −0 .travis.yml
  2. +17 −0 codecov.yml
  3. +8 −1 ring/ring.py
  4. +0 −1 setup.py
@@ -0,0 +1,23 @@
language: python
sudo: false
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "nightly"
- "pypy"
- "pypy3"
# command to install dependencies
install:
- "pip install flake8 mock pytest pytest-cov ."
# command to run tests
script:
- "flake8 --ignore=E501 ."
- "py.test --cov=ring -vv tests/"
after_success:
- bash <(curl -s https://codecov.io/bash)
matrix:
allow_failures:
- python:
- nightly
@@ -0,0 +1,17 @@
codecov:
branch: master
bot: "youknowone"

coverage:
precision: 2
round: nearest
range: "10...90"

status:
project: true
patch: true
changes: true

comment:
layout: "header, diff, changes, sunburst, uncovered"
behavior: default
@@ -6,6 +6,12 @@
from .key import Key, FormatKey, CallableKey


try:
unicode()
except NameError:
unicode = str


def _build_func_key(f, args, kwargs):
f_code = f.__code__
for i, arg in enumerate(args):
@@ -84,7 +90,8 @@ def has_indirect_marker(self, key_args, time):
for partial_keys in self.incoming_links.keys():
indirect_args = {key: key_args[key] for key in partial_keys}
indirect_marker = self.key.build_indirect_marker(indirect_args)
if self.storage.get(indirect_marker).time > time:
marked_time = self.storage.get(indirect_marker).time
if marked_time is not None and marked_time > time:
return True
return False

@@ -42,7 +42,6 @@ def get_readme():
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',

0 comments on commit 83f2ef5

Please sign in to comment.
You can’t perform that action at this time.