This repository has been archived by the owner on Sep 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e57e0b
commit 193382c
Showing
9 changed files
with
1,269 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,3 +78,7 @@ setup_v1.py | |
tower_cli_v2/ | ||
bin/tower-cli-v2 | ||
setup_v2.py | ||
|
||
# for AWX install | ||
/awx | ||
.cache/ |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
rm -rf awx/ | ||
git clone https://github.com/ansible/awx.git awx --depth=1 | ||
cp tests_awx/CLI_settings.py awx/awx/settings/CLI_settings.py | ||
python install_awx_req.py | ||
cd awx | ||
python setup.py install | ||
cd .. | ||
# have to add awx dir to path | ||
[[ ":$PYTHONPATH:" != *":$PWD/awx:"* ]] && PYTHONPATH="${PYTHONPATH}:$PWD/awx" |
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,34 @@ | ||
from subprocess import call | ||
|
||
files = ['requirements.txt', 'requirements_dev.txt'] | ||
|
||
|
||
seen = set([]) | ||
failed = set([]) | ||
|
||
|
||
for file_name in files: | ||
rel_path = 'awx/requirements/{}'.format(file_name) | ||
with open(rel_path, 'r') as f: | ||
data = f.read() | ||
for line in data.split('\n'): | ||
if not line or line.startswith('#') or not line.split('#'): | ||
continue | ||
target = line.split('#')[0].strip() | ||
pkg = target.split('=')[0] | ||
# same package listed in multiple files | ||
if pkg in seen: | ||
print('Skipping second listing of ' + str(pkg)) | ||
continue | ||
# exclusions | ||
if pkg in ['pip', 'setuptools']: | ||
print('Passing over {}, in exclusions list'.format(target)) | ||
continue | ||
seen.add(pkg) | ||
r = call("pip install " + target, shell=True) | ||
if r: | ||
failed.add(target) | ||
|
||
if failed: | ||
print 'tower-cli AWX integration failed to install packages \n' | ||
print ' - \n'.join(failed) |
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 @@ | ||
[pytest] | ||
DJANGO_SETTINGS_MODULE = awx.settings.CLI_settings | ||
python_files = *.py | ||
addopts = --reuse-db --nomigrations --tb=native |
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,3 +1,4 @@ | ||
flake8 | ||
tox-travis | ||
coveralls | ||
coveralls | ||
pytest |
Oops, something went wrong.