Tests: Travis and Coveralls integration

This commit is contained in:
Adrien Vergé 2016-01-12 21:16:39 +01:00
parent 47b44fe56c
commit e2d68dac14
4 changed files with 24 additions and 6 deletions

18
.travis.yml Normal file
View File

@ -0,0 +1,18 @@
---
language: python
python:
- 2.6
- 2.7
- 3.3
- 3.4
- 3.5
- nightly
install:
- pip install pyyaml flake8 coveralls
- pip install .
script:
- flake8 .
- yamllint $(git ls-files '*.yml')
- coverage run --source=yamllint setup.py test
after_success:
coveralls

View File

@ -1,3 +0,0 @@
.PHONY: tests
tests:
python -m unittest discover

View File

@ -1 +1,4 @@
# yamllint
[![Build Status](https://travis-ci.org/adrienverge/yamllint.svg?branch=master)](https://travis-ci.org/adrienverge/yamllint)
[![Coverage Status](https://coveralls.io/repos/adrienverge/yamllint/badge.svg?branch=master&service=github)](https://coveralls.io/github/adrienverge/yamllint?branch=master)

View File

@ -44,7 +44,7 @@ setup(
packages=find_packages(),
scripts=['bin/yamllint'],
package_data={'yamllint': ['conf/*.yml']},
install_requires=[
'pyyaml>=3'
],
install_requires=['pyyaml'],
tests_require=['nose'],
test_suite='nose.collector',
)