Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis cache #74

Merged
merged 3 commits into from Jul 14, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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