Permalink
Browse files

let qa outside of travis.cfg

  • Loading branch information...
toutpt committed Jan 21, 2013
1 parent 5abbdfa commit 9496a498fa31b93655c8797518cecedec81de23a
Showing with 7 additions and 16 deletions.
  1. +6 −14 qa.cfg
  2. +1 −2 travis-4.x.cfg
View
20 qa.cfg
@@ -1,5 +1,9 @@
[buildout]
package-src =
+#use comma separated values on pep8 ignore
+package-pep8-ignores = E501
+package-coverage = 80
+
[createzopecoverage]
recipe = createzopecoverage
@@ -11,25 +15,14 @@ eggs =
${buildout:eggs}
entry-points = flake8=flake8.run:main
-[python-validation-sh]
-recipe = collective.recipe.template
-output = ${buildout:directory}/bin/python-validation.sh
-mode = 755
-input = inline:
- #! /bin/sh
- src=${buildout:package-src}
- pep8_ignores=E501
- echo Validating Python files
- bin/flake8 --ignore=$pep8_ignores $src
-
[coverage-sh]
recipe = collective.recipe.template
output = ${buildout:directory}/bin/coverage.sh
mode = 755
input = inline:
#! /bin/sh
# default minimum coverage is 80%
- DEFAULT=80
+ DEFAULT=${buildout:package-coverage}
REPORT="coverage/reports/all.html"
if [ "$1" -ge 0 ] && [ "$1" -le 100 ]; then
@@ -80,6 +73,5 @@ mode = 755
input = inline:
#! /bin/sh
src=${buildout:package-src}
- pep8_ignores=E501,W404
echo Validating Python files
- bin/flake8 --ignore=$pep8_ignores $src
+ bin/flake8 --ignore=${buildout:package-pep8-ignores} $src
View
@@ -1,8 +1,7 @@
[buildout]
-extends = test-4.x.cfg buildout-cache.cfg qa.cfg
+extends = test-4.x.cfg buildout-cache.cfg
parts = download install test
plone-series = 4.2
package-name =
package-extras =
-package-src =
test-eggs =

0 comments on commit 9496a49

Please sign in to comment.