9db221c84f
Once #106152 lands, nodejs will be available on our trusty build nodes, so nodeenv is no longer strictly required. However, not everyone wants to install nodejs on their system, so we now wrap the nodeenv invocation into a script to test whether a local node exists. Since we can no longer assume the existence of a clean virtual environment, we also no longer install a global version of bower and grunt, and instead use the versions bundled with the codebase's package.json. Change-Id: I42f4b61037b8e988708b39e951dd2cddd99313b0
41 lines
1.1 KiB
INI
41 lines
1.1 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
whitelist_externals = bash
|
|
npm
|
|
node
|
|
nodejs
|
|
bower
|
|
grunt
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = nodeenv
|
|
MySQL-python
|
|
http://tarballs.openstack.org/storyboard/storyboard-master.tar.gz
|
|
|
|
[testenv:venv]
|
|
commands =
|
|
bash ./bin/nodeenv.sh {envdir} 0.10.29
|
|
npm install
|
|
{toxinidir}/node_modules/.bin/bower install --config.interactive=false
|
|
|
|
[testenv:grunt]
|
|
commands =
|
|
bash ./bin/nodeenv.sh {envdir} 0.10.29
|
|
npm install
|
|
{toxinidir}/node_modules/.bin/bower install --config.interactive=false
|
|
bash ./bin/api.sh create-db
|
|
bash ./bin/api.sh start
|
|
{toxinidir}/node_modules/.bin/grunt {posargs}
|
|
bash ./bin/api.sh stop
|
|
|
|
[testenv:grunt_no_api]
|
|
deps = nodeenv
|
|
commands =
|
|
bash ./bin/nodeenv.sh {envdir} 0.10.29
|
|
npm install
|
|
{toxinidir}/node_modules/.bin/bower install --config.interactive=false
|
|
{toxinidir}/node_modules/.bin/grunt {posargs}
|