-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add updoo + tests to confirm commands are available
- Loading branch information
Showing
7 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Main Module | ||
=========== | ||
This module contains the dependencies to install all others modules | ||
|
||
Contributors | ||
------------ | ||
* Jordi Riera | ||
* David Dufresne |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2018 Jordi Riera | ||
# © 2018 David Dufresne | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2018 Jordi Riera | ||
# © 2018 David Dufresne | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
{ | ||
'name': 'tests', | ||
'version': 'test', | ||
'author': 'Numigi', | ||
'maintainer': 'Numigi', | ||
'license': 'LGPL-3', | ||
'category': 'Other', | ||
'summary': 'Tests to make sure the setup is as wanted.', | ||
'depends': [ | ||
], | ||
'data': [], | ||
'installable': True, | ||
'application': True, | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2018 Jordi Riera | ||
# © 2018 David Dufresne | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
from . import test_linux_commands |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""Check that the linux command lines exists in the docker that will be pushed | ||
""" | ||
import subprocess | ||
|
||
from odoo.tests import common, unittest | ||
|
||
|
||
class CommandLines(common.TransactionCase): | ||
"""Test suite for command lines.""" | ||
|
||
def test_updoo(self): | ||
""" updoo is required.""" | ||
# no assert here, the subprocess will crash if the command doesn't exist. | ||
subprocess.call(["updoo", "--version"]) | ||
|
||
def test_gitoo(self): | ||
""" gitoo is required""" | ||
# no assert here, the subprocess will crash if the command doesn't exist. | ||
subprocess.call(["gitoo", "--version"]) | ||
|
||
def test_run_pytest_sh(self): | ||
""" run_pytest.sh""" | ||
# no assert here, the subprocess will crash if the command doesn't exist. | ||
subprocess.call(["run_pytest.sh", "--version"]) | ||
|
||
@unittest.skip("Need to find a way to test run_test.sh.") | ||
def test_run_test_sh(self): | ||
""" run_pytest.sh""" | ||
# no assert here, the subprocess will crash if the command doesn't exist. | ||
subprocess.call(["run_test.sh", "--version"]) |