-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update development and CI configurations
- Use Plone 5.0 as main branch - Use code analysis - Clean up cluttering - Add suport for Coveralls
- Loading branch information
Showing
6 changed files
with
55 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,28 @@ | ||
language: python | ||
python: | ||
- 2.6 | ||
- 2.7 | ||
python: 2.7 | ||
env: | ||
- PLONE_VERSION=4.0 | ||
- PLONE_VERSION=4.1 | ||
- PLONE_VERSION=4.2 | ||
- PLONE_VERSION=4.3 QA=true | ||
- PLONE_VERSION=5.0 | ||
matrix: | ||
exclude: | ||
- python: 2.7 | ||
env: PLONE_VERSION=4.0 | ||
- python: 2.7 | ||
env: PLONE_VERSION=4.1 | ||
include: | ||
- python: 2.6 | ||
env: PLONE_VERSION=4.2 | ||
env: PLONE_VERSION=4.0 | ||
- python: 2.6 | ||
env: PLONE_VERSION=4.3 QA=true | ||
env: PLONE_VERSION=4.1 | ||
allow_failures: | ||
- env: PLONE_VERSION=5.0 | ||
fast_finish: true | ||
install: | ||
- sed -ie "s#travis-4.x.cfg#travis-$PLONE_VERSION.x.cfg#" travis.cfg | ||
- make install | ||
- mkdir -p buildout-cache/downloads | ||
- python bootstrap.py -c travis.cfg | ||
- bin/buildout -c travis.cfg annotate | ||
- bin/buildout -c travis.cfg -N -q | ||
before_script: | ||
- "export DISPLAY=:99.0" | ||
- "sh -e /etc/init.d/xvfb start" | ||
script: make tests | ||
after_success: make qa | ||
script: bin/code-analysis && bin/test | ||
after_success: test $QA && bin/coverage.sh && pip install -q coveralls && coveralls || true | ||
notifications: | ||
irc: irc.freenode.org#simplesconsultoria |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,32 @@ | ||
[buildout] | ||
extends = | ||
https://raw.github.com/collective/buildout.plonetest/master/test-4.x.cfg | ||
https://raw.github.com/hvelarde/qa/master/tools.cfg | ||
https://raw.github.com/collective/buildout.plonetest/master/qa.cfg | ||
|
||
package-name = collective.prettydate | ||
package-extras = [test] | ||
|
||
parts += omelette | ||
parts += | ||
i18ndude | ||
omelette | ||
rebuild_i18n-sh | ||
|
||
[code-analysis] | ||
directory = ${buildout:directory}/src/collective/prettydate | ||
pre-commit-hook = True | ||
flake8-ignore = E501 | ||
flake8-max-complexity = 48 | ||
|
||
[i18ndude] | ||
recipe = zc.recipe.egg | ||
eggs = i18ndude | ||
|
||
[omelette] | ||
recipe = collective.recipe.omelette | ||
eggs = ${instance:eggs} | ||
|
||
[rebuild_i18n-sh] | ||
recipe = collective.recipe.template | ||
url = https://raw.github.com/collective/buildout.plonetest/master/templates/rebuild_i18n.sh.in | ||
output = ${buildout:directory}/bin/rebuild_i18n.sh | ||
mode = 755 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,26 @@ | ||
[versions] | ||
# needed by Plone 4.0; overriden in newer versions | ||
plone.app.testing = 4.0.2 | ||
|
||
[buildout] | ||
extends = | ||
https://raw.github.com/collective/buildout.plonetest/master/travis-4.x.cfg | ||
https://raw.github.com/hvelarde/qa/master/tools.cfg | ||
https://raw.github.com/collective/buildout.plonetest/master/qa.cfg | ||
|
||
package-name = collective.prettydate | ||
package-extras = [test] | ||
package-min-coverage = 99 | ||
|
||
parts += | ||
createcoverage | ||
coverage-sh | ||
|
||
[code-analysis] | ||
directory = ${buildout:directory}/src/collective/prettydate | ||
pre-commit-hook = False | ||
flake8-ignore = E501 | ||
return-status-codes = False | ||
|
||
[versions] | ||
# use latest version of setuptools | ||
setuptools = |