Skip to content

Commit

Permalink
Merge pull request #27 from Erotemic/conform_to_set_api
Browse files Browse the repository at this point in the history
Conform to set API, update to pytest, add CI badges
  • Loading branch information
Rob Speer committed Jun 14, 2018
2 parents 183087f + a3116f6 commit 8e6f096
Show file tree
Hide file tree
Showing 9 changed files with 400 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
branch = True
source = ordered_set.py
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
*.egg-info
dist/
.tox/
.coverage
.pytest_cache
htmlcov
30 changes: 30 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
language: python
sudo: false

cache:
apt: true
directories:
- $HOME/.cache/pip
- $HOME/download
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
before_install:
- pip install pip -U
- pip install pytest -U
install:
- travis_retry pip install -e .
script:
- travis_wait pytest --doctest-modules --cov-config .coveragerc --cov-report html --cov=ordered_set test.py

after_success:
- codecov
cache:
apt: true
directories:
- $HOME/.pip-cache

5 changes: 5 additions & 0 deletions README → README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[![Travis](https://img.shields.io/travis/LuminosoInsight/ordered-set/master.svg?label=Travis%20CI)](https://travis-ci.org/LuminosoInsight/ordered-set)
[![Codecov](https://codecov.io/github/LuminosoInsight/ordered-set/badge.svg?branch=master&service=github)](https://codecov.io/github/LuminosoInsight/ordered-set?branch=master)
[![Pypi](https://img.shields.io/pypi/v/ordered-set.svg)](https://pypi.python.org/pypi/ordered-set)


An OrderedSet is a custom MutableSet that remembers its order, so that every
entry has an index that can be looked up.

Expand Down

0 comments on commit 8e6f096

Please sign in to comment.