Added no_api env

This env will run only webclient without any API management.

Change-Id: I326fbbff09adc384bad14f6c4ee6ad778a5151c3
This commit is contained in:
Nikita Konovalov 2014-01-23 15:15:04 +04:00 committed by Michael Krotscheck
parent 9e4411efab
commit 756fde458b
2 changed files with 29 additions and 10 deletions

View File

@ -19,25 +19,29 @@ A WebClient for the OpenStack Storyboard project.
**Run the test suite**
* `tox -enode test`
* `tox -egrunt test`
**Run a local development server**
* `tox -enode server`
* `tox -egrunt server`
**Package the distro**
* `tox -enode build`
* `tox -egrunt build`
### For development.
**Create the virtualenv**
* `tox -enode build`
* `tox -egrunt build`
**Run a local development server without the API**
* `tox -egrunt_no_api server`
**Activate the virtualenv**
* `source .tox/node/bin/activate`
* `source .tox/grunt/bin/activate`
#### Within the virtual environment, you have the following options

25
tox.ini
View File

@ -13,13 +13,28 @@ setenv = VIRTUAL_ENV={envdir}
deps = nodeenv
http://tarballs.openstack.org/storyboard/storyboard-master.tar.gz
[testenv:node]
[testenv:venv]
commands =
nodeenv -p {envdir} --node=0.10.24 || true
npm install -g bower@1.2.8 grunt@0.4.2 grunt-cli@0.1.11
npm install
bower install
[testenv:grunt]
commands =
nodeenv -p {envdir} --node=0.10.24 || true
npm install -g bower@1.2.8 grunt@0.4.2 grunt-cli@0.1.11
npm install
bower install
bash ./bin/api.sh create-db
bash ./bin/api.sh start
grunt {posargs}
bash ./bin/api.sh stop
[testenv:grunt_no_api]
commands =
nodeenv -p {envdir} --node=0.10.24 || true
npm install -g bower@1.2.8 grunt@0.4.2 grunt-cli@0.1.11
npm install
bower install
bash ./bin/api.sh create-db
bash ./bin/api.sh start
grunt {posargs}
bash ./bin/api.sh stop
grunt {posargs}