summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--setup.py10
-rw-r--r--tox.ini3
3 files changed, 7 insertions, 8 deletions
diff --git a/README.md b/README.md
index 635981b45..7a286d3b7 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@ The [master branch](https://github.com/openshift/openshift-ansible/tree/master)
tracks our current work and should be compatible with both [Origin master
branch](https://github.com/openshift/origin/tree/master) and the [most recent
Origin stable release](https://github.com/openshift/origin/releases). Currently
-that's v1.4 and v1.3.x. In addition to the master branch, we maintain stable
+that's v1.5 and v1.4. In addition to the master branch, we maintain stable
branches corresponding to upstream Origin releases, e.g.:
[release-1.2](https://github.com/openshift/openshift-ansible/tree/release-1.2).
The most recent branch will often receive minor feature backports and fixes.
diff --git a/setup.py b/setup.py
index e598c3502..05a23b7bb 100644
--- a/setup.py
+++ b/setup.py
@@ -104,14 +104,14 @@ class OpenShiftAnsibleYamlLint(Command):
first = False
print(format_method(problem, yaml_file))
- if problem.level == linter.PROBLEM_LEVELS['error']:
+ if problem.level == linter.PROBLEM_LEVELS[2]:
has_errors = True
- elif problem.level == linter.PROBLEM_LEVELS['warning']:
+ elif problem.level == linter.PROBLEM_LEVELS[1]:
has_warnings = True
- assert not has_errors, 'yamllint errors found'
- assert not has_warnings, 'yamllint warnings found'
-
+ if has_errors or has_warnings:
+ print('yammlint issues found')
+ exit(1)
class OpenShiftAnsiblePylint(PylintCommand):
''' Class to override the default behavior of PylintCommand '''
diff --git a/tox.ini b/tox.ini
index c0e7732c3..158974fbe 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,8 +1,7 @@
[tox]
minversion=2.3.1
envlist =
- py{27,35}-ansible22-{pylint,unit,flake8}
- yamllint
+ py{27,35}-ansible22-{pylint,unit,flake8,yamllint}
skipsdist=True
skip_missing_interpreters=True