
Add an other-requirements.txt file containing a cross-platform list of dependencies needed for running included tox-based tests. Also include a tox environment for convenience calling the bindep[*] utility to list any missing system requirements. This change is needed since the infra team will not install standard packages in jobs anymore, projects should use other-requirements.txt instead. The macros xvfb-install, firefox-install, chrome-install which are used to run some jobs for this repository will be removed soon. This change is self-testing. For other-requirements.txt see also http://docs.openstack.org/infra/manual/drivers.html#package-requirements [*] http://docs.openstack.org/infra/bindep/ Change-Id: Ie9b17a29754fd2916095f65ddca28808fe39d8c7
49 lines
1.4 KiB
INI
49 lines
1.4 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}
|
|
|
|
[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
|