From fd4203b9407bffee56167d1f682a45d6a29a6ce2 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Thu, 29 Jan 2015 19:34:30 +0100 Subject: [PATCH] Add travis configuration. --- .travis.yml | 19 +++++++++++++++++++ travis.cfg | 21 +++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .travis.yml create mode 100644 travis.cfg diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..959dcf3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,19 @@ +language: python +python: "2.7" +sudo: false +cache: + directories: + - eggs +before_install: + - pip install http://effbot.org/downloads/Imaging-1.1.7.tar.gz +install: + - mkdir -p buildout-cache/eggs + - mkdir -p buildout-cache/downloads + - python bootstrap-buildout.py --setuptools-version=8.3 -c travis.cfg + - bin/buildout -N -t 3 -c travis.cfg +script: + - bin/code-analysis + - bin/test-coverage +after_success: + - pip install -q coveralls + - coveralls diff --git a/travis.cfg b/travis.cfg new file mode 100644 index 0000000..d77bda1 --- /dev/null +++ b/travis.cfg @@ -0,0 +1,21 @@ +[buildout] +extends = buildout.cfg +parts += + download + install + code-analysis +eggs-directory = buildout-cache/eggs +download-cache = buildout-cache/downloads + +[download] +recipe = hexagonit.recipe.download +url = https://launchpad.net/plone/4.3/4.3.4/+download/Plone-4.3.4-UnifiedInstaller.tgz + +[install] +recipe = collective.recipe.cmd +on_install = true +cmds = tar jxvf ${download:location}/Plone-4.3.4-UnifiedInstaller/packages/buildout-cache.tar.bz2 1>/dev/null + +[code-analysis] +recipe = plone.recipe.codeanalysis +return-status-codes = True