Permalink
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (54 sloc) 1.93 KB
[buildout]
extends =
https://raw.github.com/collective/buildout.plonetest/master/travis-5.x.cfg
extensions =
mr.developer
package-source = plonesocial
package-name = plonesocial.activitystream
package-extras = [test]
extensions =
mr.developer
parts +=
flake8
jenkins-test
coverage
auto-checkout =
plonesocial.core
plone.app.blocks
ploneintranet.attachments
[sources]
plonesocial.core = git https://github.com/cosent/plonesocial.core.git pushurl=git@github.com:cosent/plonesocial.core.git
plonesocial.microblog = git https://github.com/cosent/plonesocial.microblog.git pushurl=git@github.com:cosent/plonesocial.microblog.git
ploneintranet.attachments = git https://github.com/ploneintranet/ploneintranet.attachments.git pushurl=git@github.com:ploneintranet/ploneintranet.attachments.git
plone.app.blocks = git https://github.com/plone/plone.app.blocks.git
[flake8]
recipe = zc.recipe.egg
eggs = flake8
${instance:eggs}
entry-points =
flake8=flake8.run:main
[test]
recipe = collective.xmltestreport
defaults = ['--auto-color', '--auto-progress', '--xml', '-v', '-s', '${buildout:package-name}']
[jenkins-test]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
# Remove old results
echo "Erase old coverage results."
bin/coverage erase
# Collect test coverage results for all packages
echo "Run test coverage analysis for all packages."
bin/coverage run -p --source=${buildout:package-source} bin/test $@ || exit 1
echo "Create test coverage report."
# Combine all package analysis
bin/coverage combine
# Generates a "coverage.xml" file that Jenkins can read and process from the
# ".coverage" file that the coverage report created.
bin/coverage xml -i -o ${buildout:directory}/parts/test/coverage.xml
echo "Test coverage report finished."
output = ${buildout:directory}/bin/jenkins-test
mode = 755
[coverage]
recipe = zc.recipe.egg
eggs = coverage