Nikita Konovalov 559717ead9 Fix API launch
'node' enviroment does not exist anymore.
replaced with 'grunt'

Added MySQL driver installation to env script. It is in
test-requirements so it will not be installed from a tarball.

Change-Id: I2eb2d28f40fb2a8c71cea1df4ebba272d6537ca3
2014-02-28 14:08:34 -08:00

49 lines
1.1 KiB
INI

[tox]
minversion = 1.6
skipsdist = True
[testenv]
whitelist_externals = /bin/bash
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = nodeenv
http://tarballs.openstack.org/storyboard/storyboard-master.tar.gz
[testenv:venv]
commands =
nodeenv -p {envdir} --node=0.10.26 || true
npm config set ca ""
npm install npm -g
npm config delete ca
pip install MySQL-python
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.26 || true
npm config set ca ""
npm install npm -g
npm config delete ca
pip install MySQL-python
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.26 || true
npm config set ca
npm install npm -g
npm config delete ca
pip install MySQL-python
npm install -g bower@1.2.8 grunt@0.4.2 grunt-cli@0.1.11
npm install
bower install
grunt {posargs}