Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

WIP: invoke for leap15 #51

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions requirements-common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ PyYAML==3.11
requests
jinja2
rpdb
invoke
16 changes: 16 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#! /usr/bin/python

from invoke import task

@task(help={'suse': "run susetests"})
def leap15(c, suse=True, saltstack.unit=False, saltstack.integration=False):
"""
run leap15 tests
"""
c.run("docker pull dmaiocchi/leap15-salt-toaster")
if suse:
c.run("sandbox/bin/pytest -c ./configs/suse.tests/leap15/products.cfg ./tests")
if saltstack.unit:
c.run("sandbox/bin/pytest -c ./configs/saltstack.unit/leap15/products.cfg ./tests")
if saltstac.integration:
c.run("sandbox/bin/pytest -c ./configs/saltstack.integration/leap15/products.cfg ./tests")