Add tox test running config 62/55662/1
authorDaniel Farrell <dfarrell@redhat.com>
Thu, 30 Mar 2017 16:59:11 +0000 (12:59 -0400)
committerDaniel Farrell <dfarrell@redhat.com>
Wed, 19 Apr 2017 19:18:41 +0000 (15:18 -0400)
Will allow for Coala linting in CI, will work with ODL JJB hooks.

Change-Id: I7520058b13d49b0a5142a23123c7438d33a0b336
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
.gitignore
tox.ini [new file with mode: 0644]

index 199d81d4c896068494af17128a708439e02696ec..96d1f9c03bb0c6873210efdcadf006fcef2ffea3 100644 (file)
@@ -7,3 +7,4 @@ spec/fixtures
 vendor
 Gemfile.lock
 *.log
+*.tox
diff --git a/tox.ini b/tox.ini
new file mode 100644 (file)
index 0000000..831da2a
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,38 @@
+[tox]
+minversion = 1.6.0
+envlist = test,coala
+skipsdist = true
+
+[testenv]
+passenv = HOME
+whitelist_externals= bundle
+
+[testenv:coala]
+basepython = python3
+deps =
+    coala
+    coala-bears
+    nodeenv
+commands =
+    nodeenv -p
+    coala --non-interactive
+
+[testenv:test]
+commands =
+    bundle
+    bundle exec rake test
+
+[testenv:sanity]
+commands =
+    bundle
+    bundle exec rake sanity
+
+[testenv:full-dock]
+commands =
+    bundle
+    bundle exec rake acceptance_dock
+
+[testenv:full-vm]
+commands =
+    bundle
+    bundle exec rake acceptance_vm