summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien <zhang.jun3g@zte.com.cn>2017-02-26 22:44:45 +0800
committerJulien <zhang.jun3g@zte.com.cn>2017-02-27 09:16:01 +0800
commit346c5970a79b877435108d061c6ffa20e0fc6b8d (patch)
tree4d9bca903ad4089e087cc1573bc4ce80ee5b7227
parentf7b240c6893a48d71da29974e54cb560b6575eb3 (diff)
Add top layer tox support
It's easy to test each project. Change-Id: I85f25a60a6fa90992cd0ca3b0631ffd8c4ef9685 Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
-rw-r--r--requirements.txt1
-rw-r--r--setup.cfg18
-rw-r--r--setup.py4
-rw-r--r--tox.ini26
4 files changed, 49 insertions, 0 deletions
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..053148f
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1 @@
+tox
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..58941f7
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,18 @@
+[metadata]
+name = parser
+summary = OPNFV Parser Project
+author = OPNFV
+author-email = opnfv-tech-discuss@lists.opnfv.org
+home-page = https://wiki.opnfv.org/display/parser
+classifier =
+ Environment :: OPNFV
+ Intended Audience :: Information Technology
+ Intended Audience :: System Administrators
+ License :: OSI Approved :: Apache Software License
+ Operating System :: POSIX :: Linux
+ Programming Language :: Python
+ Programming Language :: Python :: 2
+ Programming Language :: Python :: 2.7
+ Programming Language :: Python :: 3
+ Programming Language :: Python :: 3.5
+
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..b341513
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,4 @@
+import setuptools
+
+setuptools.setup(
+ )
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..c4b1b0f
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,26 @@
+# this will used to integrate with other components in parser
+# such as verigraph
+[tox]
+minversion = 1.6
+envlist = py27,pep8
+skipsdist = True
+
+[testenv]
+usedevelop = True
+install_command = pip install -U {opts} {packages}
+setenv =
+ VIRTUAL_ENV={envdir}
+deps = -r{toxinidir}/requirements.txt
+
+[testenv:ht]
+whitelist_externals =
+ bash
+commands =
+ bash -c 'cd tosca2heat/heat-translator; tox'
+
+[testenv:tp]
+whitelist_externals =
+ bash
+commands =
+ bash -c 'cd tosca2heat/tosca-parser; tox'
+