Added no_api env
This env will run only webclient without any API management. Change-Id: I326fbbff09adc384bad14f6c4ee6ad778a5151c3
This commit is contained in:
committed by
Michael Krotscheck
parent
9e4411efab
commit
756fde458b
14
README.md
14
README.md
@@ -19,25 +19,29 @@ A WebClient for the OpenStack Storyboard project.
|
|||||||
|
|
||||||
**Run the test suite**
|
**Run the test suite**
|
||||||
|
|
||||||
* `tox -enode test`
|
* `tox -egrunt test`
|
||||||
|
|
||||||
**Run a local development server**
|
**Run a local development server**
|
||||||
|
|
||||||
* `tox -enode server`
|
* `tox -egrunt server`
|
||||||
|
|
||||||
**Package the distro**
|
**Package the distro**
|
||||||
|
|
||||||
* `tox -enode build`
|
* `tox -egrunt build`
|
||||||
|
|
||||||
### For development.
|
### For development.
|
||||||
|
|
||||||
**Create the virtualenv**
|
**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**
|
**Activate the virtualenv**
|
||||||
|
|
||||||
* `source .tox/node/bin/activate`
|
* `source .tox/grunt/bin/activate`
|
||||||
|
|
||||||
#### Within the virtual environment, you have the following options
|
#### Within the virtual environment, you have the following options
|
||||||
|
|
||||||
|
|||||||
25
tox.ini
25
tox.ini
@@ -13,13 +13,28 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
deps = nodeenv
|
deps = nodeenv
|
||||||
http://tarballs.openstack.org/storyboard/storyboard-master.tar.gz
|
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 =
|
commands =
|
||||||
nodeenv -p {envdir} --node=0.10.24 || true
|
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 -g bower@1.2.8 grunt@0.4.2 grunt-cli@0.1.11
|
||||||
npm install
|
npm install
|
||||||
bower install
|
bower install
|
||||||
bash ./bin/api.sh create-db
|
grunt {posargs}
|
||||||
bash ./bin/api.sh start
|
|
||||||
grunt {posargs}
|
|
||||||
bash ./bin/api.sh stop
|
|
||||||
Reference in New Issue
Block a user