Skip to content

Commit e754e33

Browse files
committed
Enable Travis-CI
1 parent ffb4eaf commit e754e33

File tree

5 files changed

+80
-1
lines changed

5 files changed

+80
-1
lines changed

.coveragerc

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[run]
2+
source =
3+
dpm/*
4+
5+
[xml]
6+
output = shippable/codecoverage/coverage.xml
7+
8+
[report]
9+
# Regexes for lines to exclude from consideration
10+
exclude_lines =
11+
# Don't complain about missing debug-only code:
12+
def __repr__
13+
if self\.debug
14+
15+
# Don't complain if tests don't hit defensive assertion code:
16+
raise AssertionError
17+
raise NotImplementedError
18+
19+
# Don't complain if non-runnable code isn't run:
20+
if 0:
21+
if False:
22+
if __name__ == .__main__.:

.travis.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: python
2+
os:
3+
- linux
4+
python:
5+
- 2.7
6+
- 3.3
7+
- 3.4
8+
- 3.5
9+
sudo: false
10+
env:
11+
- TOXENV="py${PYTHON_VERSION//./}"
12+
install:
13+
- pip install tox coveralls
14+
script: tox

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
Dpm is a datapackage manager. For more about data packages see http://frictionlessdata.io/data-packages/
1+
# Dpmpy
2+
3+
[![Gitter](https://img.shields.io/gitter/room/frictionlessdata/chat.svg)](https://gitter.im/frictionlessdata/chat)
4+
[![Build Status](https://travis-ci.org/frictionlessdata/dpmpy.svg?branch=master)](https://travis-ci.org/frictionlessdata/dpmpy)
5+
[![Test Coverage](https://coveralls.io/repos/frictionlessdata/dpmpy/badge.svg?branch=master&service=github)](https://coveralls.io/github/frictionlessdata/dpmpy)
6+
![Support Python versions 2.7, 3.3, 3.4 and 3.5](https://img.shields.io/badge/python-2.7%2C%203.3%2C%203.4%2C%203.5-blue.svg)
7+
8+
Dpmpy is a datapackage manager. For more about data packages see http://frictionlessdata.io/data-packages/
29

310
## Install
411

run_coveralls.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/env/python
2+
3+
import os
4+
5+
from subprocess import call
6+
7+
8+
if __name__ == '__main__':
9+
if 'TRAVIS' in os.environ:
10+
rc = call('coveralls')
11+
raise SystemExit(rc)

tox.ini

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[tox]
2+
envlist=
3+
py27
4+
py33
5+
py34
6+
py35
7+
skip_missing_interpreters = true
8+
9+
[testenv]
10+
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
11+
deps=
12+
coverage
13+
pytest >= 2.4
14+
pytest-cov
15+
coveralls
16+
mocket
17+
responses
18+
mock
19+
commands=
20+
py.test \
21+
--cov dpm \
22+
--cov-report term-missing \
23+
--cov-config .coveragerc \
24+
{posargs}
25+
python {toxinidir}/run_coveralls.py

0 commit comments

Comments
 (0)