forked from MirrorHub/synapse
Pull out jenkins script into a checked in script
This commit is contained in:
parent
6fed9fd697
commit
233af7c74b
3 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
4
jenkins.sh
Executable file
4
jenkins.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash -eu
|
||||
|
||||
export PYTHONDONTWRITEBYTECODE=yep
|
||||
TOXSUFFIX="--reporter=subunit | subunit-1to2 | subunit2junitxml --no-passthrough --output-to=results.xml" tox
|
4
tox.ini
4
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]
|
||||
|
|
Loading…
Reference in a new issue