Permalink
Browse files

refactor QA tools inclusion to remove a little bit of cluttering

  • Loading branch information...
1 parent 2e336b7 commit 8507dd422b719053721206437bf538da9dbe6435 @hvelarde hvelarde committed Mar 25, 2013
Showing with 3 additions and 44 deletions.
  1. +1 −1 Makefile
  2. +1 −1 buildout.cfg
  3. +0 −27 coverage.sh
  4. +0 −14 quality-assurance.cfg
  5. +1 −1 travis.cfg
View
@@ -45,7 +45,7 @@ js-validation: ack-install jshint-install
quality-assurance: python-validation css-validation js-validation
@echo Quality assurance
- ./coverage.sh $(minimum_coverage)
+ bin/coverage.sh $(minimum_coverage)
install:
mkdir -p buildout-cache/downloads
View
@@ -2,7 +2,7 @@
extensions = buildout-versions
extends =
https://raw.github.com/collective/buildout.plonetest/master/test-4.x.cfg
- quality-assurance.cfg
+ https://raw.github.com/hvelarde/qa/master/tools.cfg
versions.cfg
package-name = collective.polls
View
@@ -1,27 +0,0 @@
-#! /bin/sh
-# checks for report created with createzopecoverage and evaluate the result
-
-# default minimum coverage is 80%
-DEFAULT=80
-REPORT="coverage/reports/all.html"
-
-if [ "$1" -ge 0 ] && [ "$1" -le 100 ]; then
- MINIMUM=$1
-else
- echo "Invalid value for minimum coverage; using default: $DEFAULT%"
- MINIMUM=$DEFAULT
-fi
-
-if [ ! -f "$REPORT" ]; then
- bin/createzopecoverage 1>/dev/null
-fi
-
-# find first percentage value in file (module test coverage) and return it
-COVERAGE=`grep "[0-9]\{1,3\}[%]" ${REPORT} -m 1 -o | grep "[0-9]\{1,3\}" -o`
-
-if [ $COVERAGE -lt $MINIMUM ]; then
- echo "Insufficient test coverage: $COVERAGE% (minimum acceptable is $MINIMUM%)"
- exit 1
-else
- exit 0
-fi
View
@@ -1,14 +0,0 @@
-[buildout]
-parts +=
- createzopecoverage
- flake8
-
-[createzopecoverage]
-recipe = createzopecoverage
-
-[flake8]
-recipe = zc.recipe.egg
-eggs =
- flake8
- ${buildout:eggs}
-entry-points = flake8=flake8.run:main
View
@@ -1,7 +1,7 @@
[buildout]
extends =
https://raw.github.com/collective/buildout.plonetest/master/travis-4.x.cfg
- quality-assurance.cfg
+ https://raw.github.com/hvelarde/qa/master/tools.cfg
versions.cfg
package-name = collective.polls

0 comments on commit 8507dd4

Please sign in to comment.