Skip to content

Commit

Permalink
Refactor CI configuration
Browse files Browse the repository at this point in the history
- Test under Plone 4.2, 4.3 and 5.0
- Add support for Coveralls
  • Loading branch information
hvelarde committed Aug 27, 2014
1 parent c132c7f commit 3ddd8f8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
18 changes: 13 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
language: python
python: 2.7
env: PLONE_VERSION=4.3
env:
- PLONE_VERSION=4.2
- PLONE_VERSION=4.3 QA=true
- PLONE_VERSION=5.0
matrix:
allow_failures:
env:
- PLONE_VERSION=4.2
- PLONE_VERSION=5.0
fast_finish: true
install:
- sed -ie "s#travis-4.x.cfg#travis-$PLONE_VERSION.x.cfg#" travis.cfg
- 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: bin/test
after_success: bin/code-analysis
after_failure: bin/buildout annotate -c travis.cfg
script: bin/code-analysis && bin/test
after_success: test QA && bin/coverage.sh && pip install -q coveralls && coveralls || true
after_failure: firefox -v
notifications:
irc: irc.freenode.org#simplesconsultoria
irc: irc.freenode.org#plone-testing
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Plone',
'Framework :: Plone :: 4.2',
'Framework :: Plone :: 4.3',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
Expand All @@ -44,7 +45,7 @@
'plone.dexterity',
'plone.directives.form',
'plone.memoize',
'Products.CMFPlone >=4.3',
'Products.CMFPlone >=4.2',
'Products.GenericSetup',
'setuptools',
'zope.annotation',
Expand Down
4 changes: 3 additions & 1 deletion travis.cfg
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[buildout]
extends =
https://raw.github.com/collective/buildout.plonetest/master/travis-4.3.x.cfg
https://raw.github.com/collective/buildout.plonetest/master/travis-4.x.cfg
https://raw.github.com/collective/buildout.plonetest/master/qa.cfg
https://raw.github.com/plone/plone.app.robotframework/master/versions.cfg

package-name = collective.liveblog
package-extras = [test]
test-eggs = Pillow

parts +=
coverage-sh
Expand All @@ -24,5 +25,6 @@ return-status-codes = True
utf8-header = True

[versions]
pep8 = 1.5.7
# use latest version of setuptools
setuptools =

0 comments on commit 3ddd8f8

Please sign in to comment.