Skip to content

Commit

Permalink
Adds travis testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krienbühl committed Jan 13, 2016
1 parent 999c7d6 commit 434a21e
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 4 deletions.
18 changes: 18 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[bumpversion]
current_version = 0.6
commit = True
tag = True
message = Release {new_version}

[bumpversion:file:setup.py]

[bumpversion:file:HISTORY.rst]
search =
Changelog
---------
replace =
Changelog
---------

{new_version} ({now:%Y-%m-%d})
~~~~~~~~~~~~~~~~~~~
9 changes: 9 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[report]
omit =
extras/*
buildout-cache/eggs/*
parts/*
eggs/*
*/test*
*/test-views/*
*/distutils/__init__.py
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: python
python: "2.7"
env:
- TOXENV=py27
- TOXENV=pep8
install:
- pip install tox
- if [ "$TOXENV" = 'py27' ]; then pip install coveralls; fi
script:
- tox -e $TOXENV
after_success:
- if [ "$TOXENV" = 'py27' ]; then coveralls; fi
deploy:
provider: pypi
distributions: "sdist bdist_wheel"
user: seantis
password:
secure: "p5EE2MePFHvfe5EWyrbO+V/a+JXjfJ3wYVQB5N+1Ap3QSmQQoworq1x+zufuI9wK0R8f1eCSnaSyWM7vw+i6aBLgilGLbjvax6PEJdSMmQ1vRC1hpEnXVcvpZc//gEdJzC5vcA9/ZqtXQXVbrLcd6eloPggKrjTstx/pmGnQcVY="
on:
tags: true
condition: $TOXENV = py27
3 changes: 0 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ This can easily be translated to the suitable api::
Changelog
---------

0.7 (unreleased)
~~~~~~~~~~~~~~~~

- Adds support for Ansible 2.0. **Does not support 1.x anymore!!**

0.6 (2015-06-22)
Expand Down
2 changes: 2 additions & 0 deletions suitable/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
from api import Api

__all__ = ['Api']
10 changes: 9 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27-ansible20
envlist = py27-ansible20,pep8

[testenv]
deps = pytest
Expand All @@ -10,3 +10,11 @@ passenv = *
basepython = python2.7
deps = {[testenv]deps}
ansible>=2.0.0.0

[testenv:pep8]
basepython = python2

deps = {[testenv]deps}
flake8

commands = flake8

0 comments on commit 434a21e

Please sign in to comment.