Skip to content

Commit

Permalink
Merge pull request #20 from plone/travis-cache
Browse files Browse the repository at this point in the history
Travis cache
  • Loading branch information
tisto committed Jul 11, 2015
2 parents 2121c6a + d8c4ba9 commit 263334d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 24 deletions.
14 changes: 9 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
language: python
python: "2.7"
python: 2.7
sudo: false
cache:
pip: true
directories:
- $HOME/buildout-cache
before_install:
- pip install http://effbot.org/downloads/Imaging-1.1.7.tar.gz
- mkdir -p $HOME/buildout-cache/{eggs,downloads}
- virtualenv .
- bin/pip install --upgrade pip setuptools zc.buildout
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
Expand Down
2 changes: 1 addition & 1 deletion buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ mode = 755


[versions]
setuptools = 8.3
setuptools =
zc.buildout = 2.3.1
zope.interface = 4.0.5
coverage = 3.7.1
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
],
extras_require={'test': [
'plone.app.contenttypes',
'plone.app.testing[robot]>=4.2.2',
'plone.app.robotframework',
'plone.app.testing [robot] >= 4.2.2',
'requests',
]},
entry_points="""
Expand Down
22 changes: 5 additions & 17 deletions travis.cfg
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
[buildout]
extends = buildout.cfg
parts =
download
install
test
coverage
test-coverage
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
# caches, see also .travis.yaml
# one should not depend on '/home/travis' but it seems stable in containers.
eggs-directory = /home/travis/buildout-cache/eggs
download-cache = /home/travis/buildout-cache/downloads

[code-analysis]
recipe = plone.recipe.codeanalysis
pre-commit-hook = False
return-status-codes = True

0 comments on commit 263334d

Please sign in to comment.