Add tox.ini file to run things via tox
I'm not kidding. This works. Change-Id: I7caf2277eb667737a5537f13d245153133a0d203
This commit is contained in:
parent
1695d65992
commit
e9c34dec57
3
.gitignore
vendored
3
.gitignore
vendored
@ -7,4 +7,5 @@ npm-debug.log
|
||||
*.iml
|
||||
.idea
|
||||
reports
|
||||
cover
|
||||
cover
|
||||
.tox
|
||||
|
40
README.md
40
README.md
@ -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**
|
||||
|
||||
@ -34,4 +56,4 @@ A PoC WebClient for the OpenStack Storyboard project.
|
||||
|
||||
**Package the distro**
|
||||
|
||||
`grunt build`
|
||||
`grunt build`
|
||||
|
20
tox.ini
Normal file
20
tox.ini
Normal 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}
|
Loading…
Reference in New Issue
Block a user