use package-directory param for more flexibility.
svn path=/plone.app.discussion/trunk/; revision=39355
This commit is contained in:
parent
dc160f9d5e
commit
c530e2dbf3
@ -3,6 +3,7 @@ extends =
|
|||||||
http://svn.plone.org/svn/collective/buildout/plonetest/plone-4.0.x.cfg
|
http://svn.plone.org/svn/collective/buildout/plonetest/plone-4.0.x.cfg
|
||||||
|
|
||||||
package-name = plone.app.discussion
|
package-name = plone.app.discussion
|
||||||
|
package-directory = plone/app/discussion
|
||||||
|
|
||||||
parts +=
|
parts +=
|
||||||
omelette
|
omelette
|
||||||
@ -50,7 +51,7 @@ url = http://siliconforks.com/jscoverage/download/jscoverage-0.5.tar.bz2
|
|||||||
recipe = collective.recipe.template
|
recipe = collective.recipe.template
|
||||||
input = inline:
|
input = inline:
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
jscoverage-server -v --ip-address=0.0.0.0 --port=9999 --encoding=UTF-8 --document-root=plone/app/discussion/ --no-instrument=/tests
|
jscoverage-server -v --ip-address=0.0.0.0 --port=9999 --encoding=UTF-8 --document-root=${buildout:package-directory} --no-instrument=/tests
|
||||||
output = ${buildout:directory}/bin/jscoverage
|
output = ${buildout:directory}/bin/jscoverage
|
||||||
mode = 755
|
mode = 755
|
||||||
|
|
||||||
@ -94,9 +95,12 @@ arguments = [
|
|||||||
recipe = collective.recipe.template
|
recipe = collective.recipe.template
|
||||||
input = inline:
|
input = inline:
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
if [ -s pylint.log ]; then
|
||||||
rm pylint.log
|
rm pylint.log
|
||||||
|
echo "Old pylint.log file removed"
|
||||||
|
fi
|
||||||
echo "Running pylint"
|
echo "Running pylint"
|
||||||
find -L plone/app/discussion/ -regex ".*\.[c]?py" | xargs bin/pylint >> pylint.log
|
find -L ${buildout:package-directory} -regex ".*\.[c]?py" | xargs bin/pylint >> pylint.log
|
||||||
echo "finish"
|
echo "finish"
|
||||||
output = ${buildout:directory}/bin/pylint-test
|
output = ${buildout:directory}/bin/pylint-test
|
||||||
mode = 755
|
mode = 755
|
||||||
@ -112,14 +116,14 @@ recipe = collective.recipe.template
|
|||||||
input = inline:
|
input = inline:
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ -e zptlint.log ]; then
|
if [ -e zptlint.log ]; then
|
||||||
echo "Removing existing zptlint.log file"
|
echo "Old zptlint.log file removed"
|
||||||
rm zptlint.log
|
rm zptlint.log
|
||||||
fi
|
fi
|
||||||
echo "Running zptlint-test"
|
echo "Running zptlint-test"
|
||||||
TMPL=$(find plone/app/discussion -regex ".*\.[c|z]?pt")
|
TMPL=$(find ${buildout:package-directory} -regex ".*\.[c|z]?pt")
|
||||||
echo "Checking"
|
echo "Checking"
|
||||||
echo $TMPL
|
echo $TMPL
|
||||||
find plone/app/discussion -regex ".*\.[c|z]?pt" | xargs bin/zptlint > zptlint.log
|
find ${buildout:package-directory} -regex ".*\.[c|z]?pt" | xargs bin/zptlint > zptlint.log
|
||||||
if [ -s zptlint.log ]; then
|
if [ -s zptlint.log ]; then
|
||||||
echo "Errors were found:"
|
echo "Errors were found:"
|
||||||
cat zptlint.log
|
cat zptlint.log
|
||||||
|
Loading…
Reference in New Issue
Block a user