forked from openshift/openshift-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Consolidate tests between the root of the repo and utils
- Loading branch information
Showing
13 changed files
with
38 additions
and
110 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[flake8] | ||
exclude=.tox,utils,inventory | ||
# TODO: cleanup flake8 issues with utils/test/* | ||
exclude=.tox,inventory,utils/test | ||
max_line_length = 120 | ||
ignore = E501,T003 |
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 |
---|---|---|
|
@@ -4,17 +4,34 @@ sudo: false | |
cache: | ||
- pip | ||
|
||
before_cache: | ||
- rm ~/.cache/pip/log/debug.log | ||
|
||
language: python | ||
python: | ||
- "2.7" | ||
- "3.5" | ||
|
||
install: | ||
- pip install -r requirements.txt | ||
- pip install tox-travis | ||
|
||
script: | ||
# TODO(rhcarvalho): check syntax of other important entrypoint playbooks | ||
- ansible-playbook --syntax-check playbooks/byo/config.yml | ||
- tox | ||
- cd utils && tox | ||
|
||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
- [email protected] | ||
on_success: change | ||
on_failure: always | ||
irc: | ||
channels: | ||
- chat.freenode.net#openshift-dev | ||
on_success: change | ||
on_failure: always | ||
template: | ||
- "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}" | ||
- "Change view : %{compare_url}" | ||
- "Build details : %{build_url}" | ||
- "sdodson jdetiber: ^" |
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
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
ansible>=2.2 | ||
six | ||
click | ||
pyOpenSSL | ||
PyYAML | ||
ruamel.yaml | ||
# We need to disable ruamel.yaml for now because of test failures | ||
#ruamel.yaml | ||
six |
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
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 |
---|---|---|
@@ -1,21 +1,24 @@ | ||
[tox] | ||
minversion=2.3.1 | ||
envlist = | ||
py{27,35}-ansible22-{pylint,unit,flake8,yamllint,generate_validation} | ||
py{27,35}-{flake8,pylint,unit} | ||
py27-{yamllint,ansible_syntax,generate_validation} | ||
skipsdist=True | ||
skip_missing_interpreters=True | ||
|
||
[testenv] | ||
skip_install=True | ||
deps = | ||
-rrequirements.txt | ||
-rtest-requirements.txt | ||
py35-flake8: flake8-bugbear | ||
ansible22: ansible~=2.2 | ||
|
||
commands = | ||
unit: pip install -e utils | ||
unit: pytest {posargs} | ||
flake8: flake8 {posargs} | ||
pylint: python setup.py lint | ||
yamllint: python setup.py yamllint | ||
generate_validation: python setup.py generate_validation | ||
|
||
|
||
# TODO(rhcarvalho): check syntax of other important entrypoint playbooks | ||
ansible_syntax: ansible-playbook --syntax-check playbooks/byo/config.yml |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.