Skip to content

Commit

Permalink
add travis ci and coveralls support. fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
mayn committed Jul 16, 2017
1 parent 9b346c8 commit e5fc983
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .travis.yml
@@ -0,0 +1,17 @@
language: python
python:
- 2.6
- 2.7
- 3.3
- 3.4
- 3.5
- 3.6
- pypy
install:
- pip install -r requirements.txt
- pip install -r requirements-test.txt
- pip install coveralls
script:
- coverage run -m py.test
after_success:
- coveralls
8 changes: 7 additions & 1 deletion README.md
@@ -1 +1,7 @@
# packerlicious
# packerlicious
[![Build Status][build-status-badge]][build-status] [![Test coverage][test-coverage-badge]][test-coverage]

[build-status-badge]: https://travis-ci.org/mayn/packerlicious.svg?branch=master
[build-status]: https://travis-ci.org/mayn/packerlicious
[test-coverage-badge]: https://coveralls.io/repos/github/mayn/packerlicious/badge.svg?branch=master
[test-coverage]: https://coveralls.io/github/mayn/packerlicious
2 changes: 2 additions & 0 deletions requirements-test.txt
@@ -0,0 +1,2 @@
pytest
coverage
Empty file added requirements.txt
Empty file.
13 changes: 13 additions & 0 deletions setup.cfg
@@ -0,0 +1,13 @@
[coverage:run]
branch = true
source = src

[coverage:report]
omit =
*test*
*tox*

[tool:pytest]
addopts = --verbose
testpaths =
tests
Empty file added src/packerlicious/__init__.py
Empty file.
Empty file added tests/__init__.py
Empty file.
2 changes: 2 additions & 0 deletions tests/packerlicious/test_project_infrastructure.py
@@ -0,0 +1,2 @@
def test_travis_with_coveralls():
assert True

0 comments on commit e5fc983

Please sign in to comment.