Tests: Travis and Coveralls integration

pull/4/head
Adrien Vergé 9 years ago
parent 47b44fe56c
commit e2d68dac14

@ -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

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

@ -1 +1,4 @@
# yamllint # 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)

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

Loading…
Cancel
Save