Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow running abao from tox #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -89,3 +89,6 @@ ENV/

# Rope project settings
.ropeproject

# abao tests run gunicorn in tox, this file is used to track it's pid and kill after run
.gunicorn.pid
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -9,6 +9,7 @@ env:
- TOXENV=py27
- TOXENV=py33
- TOXENV=py34
- TOXENV=abao

script:
- tox
Expand Down
2 changes: 2 additions & 0 deletions test-requirements.txt
Expand Up @@ -13,3 +13,5 @@ ddt>=1.0.1
mock>=2.0

testtools>=1.4.0

nodeenv>=0.9.4 # BSD License # BSD
9 changes: 9 additions & 0 deletions tox.ini
Expand Up @@ -37,6 +37,15 @@ basepython = python3.4
[testenv:py35]
basepython = python3.5

[testenv:abao]
deps = -r{toxinidir}/test-requirements.txt
passenv = *
commands = nodeenv -p
npm install --save --save-dev -g abao@0.5.0
gunicorn -w 1 -b 0.0.0.0:5000 ceagle.main:app -D -p .gunicorn.pid
abao raml/api.raml --server http://127.0.0.1:5000 --hookfiles raml/abao_hooks.js
sh -c \'kill -9 `cat .gunicorn.pid`\'

[testenv:venv]
commands = {posargs}

Expand Down