Add travis configuration.

This commit is contained in:
Timo Stollenwerk 2015-01-29 19:34:30 +01:00
parent 07076e157b
commit fd4203b940
2 changed files with 40 additions and 0 deletions

19
.travis.yml Normal file
View File

@ -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

21
travis.cfg Normal file
View File

@ -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