Add tox.ini file to run things via tox

I'm not kidding. This works.

Change-Id: I7caf2277eb667737a5537f13d245153133a0d203
This commit is contained in:
Monty Taylor 2014-01-19 06:58:36 -08:00 committed by Michael Krotscheck
parent 1695d65992
commit e9c34dec57
3 changed files with 53 additions and 10 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ npm-debug.log
.idea
reports
cover
.tox

View File

@ -1,7 +1,7 @@
storyboard-webclient
====================
A PoC WebClient for the OpenStack Storyboard project.
A WebClient for the OpenStack Storyboard project.
### Prerequisites: Quick build/CI
@ -13,16 +13,38 @@ A PoC WebClient for the OpenStack Storyboard project.
### Prerequisites: Dev
* NodeJS 0.10.24 or newer
* Grunt 0.4.2
* bower 1.2.8
* tox
### Command reference:
### Use tox:
**Bootstrap & build the CI environment**
**Run the test suite**
* `./bin/bootstrap.sh`
* `./bin/build.sh`
* `tox -enode test`
**Run a local development server**
* `tox -enode server`
**Package the distro**
* `tox -enode build`
### For development.
**Create the virtualenv**
* `tox -enode build`
**Activate the virtualenv**
* `source .tox/node/bin/activate`
**Update/refresh the javascript build and runtime dependencies**
* `npm prune`
* `npm install`
* `bower prune`
* `bower install`
**Run a local development server**

20
tox.ini Normal file
View File

@ -0,0 +1,20 @@
[tox]
minversion = 1.6
envlist = node
skipsdist = True
[testenv]
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=C
deps = nodeenv
[testenv:node]
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
grunt {posargs}