Skip to content
This repository was archived by the owner on Sep 16, 2020. It is now read-only.

Commit d5ed137

Browse files
committed
integrated AWX tests
1 parent 9e57e0b commit d5ed137

7 files changed

Lines changed: 1234 additions & 2 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,7 @@ setup_v1.py
7878
tower_cli_v2/
7979
bin/tower-cli-v2
8080
setup_v2.py
81+
82+
# for AWX install
83+
/awx
84+
.cache/

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ python:
1010
matrix:
1111
allow_failures:
1212
- python: nightly
13+
before_install:
14+
- ./install_awx.sh
1315
install:
1416
- pip install -r requirements_dev.txt
15-
before_script:
16-
flake8 .
1717
script:
18+
- flake8 tower-cli/ tests/
1819
- tox
20+
- py.test tests_awx/
1921
after_success:
2022
coveralls

install_awx.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
rm -rf awx/
2+
git clone https://github.com/ansible/awx.git awx --depth=1
3+
cp tests_awx/CLI_settings.py awx/awx/settings/CLI_settings.py
4+
cd awx
5+
pip install -r requirements/requirements.txt
6+
pip install -r requirements/requirements_dev.txt
7+
python setup.py install
8+
cd ..
9+
# have to add awx dir to path
10+
[[ ":$PYTHONPATH:" != *":$PWD/awx:"* ]] && PYTHONPATH="${PYTHONPATH}:$PWD/awx"

pytest.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[pytest]
2+
DJANGO_SETTINGS_MODULE = awx.settings.CLI_settings
3+
python_files = *.py
4+
addopts = --reuse-db --nomigrations --tb=native

0 commit comments

Comments
 (0)