Skip to content

Commit

Permalink
Allow running abao from tox
Browse files Browse the repository at this point in the history
Simply run tox -e abao to test raml files against fake api.
  • Loading branch information
teferi committed Dec 14, 2016
1 parent b81830c commit 019ba57
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
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 @@ -8,6 +8,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 -ddd -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

0 comments on commit 019ba57

Please sign in to comment.