Tests: Travis and Coveralls integration
This commit is contained in:
18
.travis.yml
Normal file
18
.travis.yml
Normal 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
|
||||||
@@ -1 +1,4 @@
|
|||||||
# yamllint
|
# yamllint
|
||||||
|
|
||||||
|
[](https://travis-ci.org/adrienverge/yamllint)
|
||||||
|
[](https://coveralls.io/github/adrienverge/yamllint?branch=master)
|
||||||
|
|||||||
6
setup.py
6
setup.py
@@ -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',
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user