Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conform to set API, update to pytest, add CI badges #27

Merged
merged 9 commits into from
Jun 14, 2018
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