summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Wagner-Hall <daniel@matrix.org>2015-11-13 16:22:51 +0000
committerDaniel Wagner-Hall <daniel@matrix.org>2015-11-13 16:22:51 +0000
commit233af7c74bff9815a282bdd43d9979b081189544 (patch)
treec8d87107308888bee92e6ca5c5fdff55dd4e6562
parentMerge pull request #374 from matrix-org/daniel/guestleave (diff)
downloadsynapse-233af7c74bff9815a282bdd43d9979b081189544.tar.xz
Pull out jenkins script into a checked in script
-rw-r--r--MANIFEST.in2
-rwxr-xr-xjenkins.sh4
-rw-r--r--tox.ini4
3 files changed, 9 insertions, 1 deletions
diff --git a/MANIFEST.in b/MANIFEST.in
index 573e21f41d..5668665db7 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -20,4 +20,6 @@ recursive-include synapse/static *.gif
 recursive-include synapse/static *.html
 recursive-include synapse/static *.js
 
+exclude jenkins.sh
+
 prune demo/etc
diff --git a/jenkins.sh b/jenkins.sh
new file mode 100755
index 0000000000..2680d16b42
--- /dev/null
+++ b/jenkins.sh
@@ -0,0 +1,4 @@
+#!/bin/bash -eu
+
+export PYTHONDONTWRITEBYTECODE=yep
+TOXSUFFIX="--reporter=subunit | subunit-1to2 | subunit2junitxml --no-passthrough --output-to=results.xml" tox
diff --git a/tox.ini b/tox.ini
index 01b23e6bd9..cf54ebb0ac 100644
--- a/tox.ini
+++ b/tox.ini
@@ -6,10 +6,12 @@ deps =
     coverage
     Twisted>=15.1
     mock
+    python-subunit
+    junitxml
 setenv =
     PYTHONDONTWRITEBYTECODE = no_byte_code
 commands =
-    coverage run --source=synapse {envbindir}/trial {posargs:tests}
+    /bin/bash -c "coverage run --source=synapse {envbindir}/trial {posargs:tests} {env:TOXSUFFIX:}"
     coverage report -m
 
 [testenv:packaging]