storyboard-webclient/tox.ini
Adam Coldrick 67cb1eb57c Rebuild node-sass bindings when running the webclient dev server
If a newer version of node.js is installed on the user's system than is
used in tox.ini, it is possible to run into errors when running the
sass-related parts of the build. Forcing a rebuild of the bindings
fixes this issue.

Change-Id: Ia4dc046334d4c483f0a880f158bdfa56c153a199
2019-02-03 19:42:25 +00:00

46 lines
1.2 KiB
INI

[tox]
minversion = 2.0
skipsdist = True
[testenv]
whitelist_externals = bash
npm
node
nodejs
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} 6.10.2
npm install
[testenv:grunt]
commands =
bash ./bin/nodeenv.sh {envdir} 6.10.2
npm install
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} 6.10.2
npm install
npm rebuild node-sass --force
{toxinidir}/node_modules/.bin/grunt {posargs}
[testenv:bindep]
# Do not install any requirements. We want this to be fast and work even if
# system dependencies are missing, since it's used to tell you what system
# dependencies are missing! This also means that bindep must be installed
# separately, outside of the requirements files.
deps = bindep
commands = bindep test