ci: add linting jobs

Change-Id: Id312b11d510caa6becd6113765dc891b929fab05
This commit is contained in:
Mohammed Naser 2019-08-23 14:25:39 -04:00
parent 85a5e972a8
commit eddb78f48a
4 changed files with 9 additions and 4 deletions

View File

@ -26,6 +26,7 @@ parser.add_argument('--master', type=str, required=True,
parser.add_argument('--minion', type=str, required=True, action='append',
help='minion')
def main():
args = parser.parse_args()

View File

@ -27,7 +27,7 @@ class Cluster(object):
try:
shutil.copytree('ansible', '%s/project' % private_data_dir)
r = ansible_runner.run(private_data_dir=private_data_dir,
ansible_runner.run(private_data_dir=private_data_dir,
inventory=self.config.inventory,
playbook='site.yaml')
finally:

View File

@ -9,9 +9,11 @@ deps =
-r{toxinidir}/requirements.txt
[testenv:linters]
usedevelop = True
deps =
flake8
commands = flake8
[testenv:venv]
skipsdist = True
commands = {posargs}

View File

@ -16,9 +16,11 @@
- project:
check:
jobs:
- tox-linters
- kue-integration-1-node
- kue-integration-2-node
gate:
jobs:
- tox-linters
- kue-integration-1-node
- kue-integration-2-node