mirror of
https://github.com/adrienverge/yamllint.git
synced 2025-02-16 13:04:45 -06:00
Tests: Travis and Coveralls integration
This commit is contained in:
parent
47b44fe56c
commit
e2d68dac14
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
|
||||||
|
|
||||||
|
[![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)
|
||||||
|
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',
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user