Add travis

This commit is contained in:
Daniel Widerin 2013-03-12 19:24:34 +01:00
parent 3e69fea451
commit 86ebd97d04
2 changed files with 31 additions and 0 deletions

13
.travis.yml Normal file
View File

@ -0,0 +1,13 @@
language: python
python: "2.7"
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.py -c travis.cfg
- bin/buildout -N -t 3 -c travis.cfg
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script: bin/test -s plone.app.contenttypes

18
travis.cfg Normal file
View File

@ -0,0 +1,18 @@
[buildout]
extends = test-plone-4.3.x.cfg
parts =
download
install
test
eggs-directory = buildout-cache/eggs
download-cache = buildout-cache/downloads
[download]
recipe = hexagonit.recipe.download
url = https://launchpad.net/plone/4.3/4.3b2/+download/Plone-4.3b2-UnifiedInstaller.tgz
[install]
recipe = collective.recipe.cmd
on_install = true
cmds = tar jxvf ${download:location}/Plone-4.3b2-UnifiedInstaller/packages/buildout-cache.tar.bz2 1>/dev/null