Skip to content

Commit

Permalink
Merge pull request #74 from plone/travis-cache
Browse files Browse the repository at this point in the history
Travis cache
  • Loading branch information
pbauer committed Jul 14, 2015
2 parents fa43439 + 37fd509 commit f1bb223
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
14 changes: 10 additions & 4 deletions .travis.yml
@@ -1,10 +1,17 @@
language: python
python:
- 2.7
python: 2.7
sudo: false
cache:
pip: true
directories:
- test.plone_addon/eggs
- $HOME/buildout-cache
- $HOME/test.plone_addon/eggs
before_install:
- mkdir -p $HOME/buildout-cache/{eggs,downloads}
- virtualenv .
- bin/pip install --upgrade pip setuptools zc.buildout
install:
- bin/buildout -N -t 3 -c travis.cfg

env:
matrix:
Expand All @@ -20,7 +27,6 @@ install:
- sed -ie "s/^plone.version.*/plone.version = $PLONE_VERSION/g" test_answers.ini
- sed -ie "s/^package.type.*/package.type = $PACKAGE_TYPE/g" test_answers.ini
- if [ "$PACKAGE_TYPE" == "Dexterity" ]; then echo "package.dexterity_type_name = MyDextrityTestType" >> test_answers.ini; fi
- python bootstrap-buildout.py --setuptools-version=8.3 -c travis.cfg
- bin/buildout -c travis.cfg

before_script:
Expand Down
2 changes: 1 addition & 1 deletion buildout.cfg
Expand Up @@ -58,7 +58,7 @@ mode = 755
[code-analysis]
recipe = plone.recipe.codeanalysis
directory = ${buildout:directory}
flake8-exclude = bootstrap.py,bootstrap-buildout.py,docs,*.egg.,omelette
flake8-exclude = bootstrap.py,bootstrap-buildout.py,docs,lib,bin,*.egg.,omelette
flake8-max-complexity = 15
flake8-extensions =
flake8-blind-except
Expand Down
6 changes: 5 additions & 1 deletion travis.cfg
@@ -1,6 +1,10 @@
[buildout]
extends = buildout.cfg
parts += code-analysis

# 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
Expand Down
1 change: 1 addition & 0 deletions versions.cfg
@@ -1,4 +1,5 @@
[versions]
setuptools =
zc.buildout = 2.2.5
zc.recipe.egg = 2.0.1
flake8 = 2.3.0

0 comments on commit f1bb223

Please sign in to comment.