Skip to content

Commit

Permalink
provide a virtualenv-enabled Travis buildout that can be debugged on …
Browse files Browse the repository at this point in the history
…a dev box
  • Loading branch information
gyst committed Nov 26, 2012
1 parent b0d77e9 commit 589e333
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 30 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -13,3 +13,4 @@ lib/
parts/ parts/
var/ var/
dist/ dist/
buildout-cache
36 changes: 16 additions & 20 deletions Makefile
@@ -1,26 +1,22 @@
# convenience makefile to boostrap & run buildout default: buildout test
# use `make options=-v` to run buildout with extra options


pep8_ignores = E501 buildout: bin/buildout buildout-cache/downloads
options = -N -q -t 3 bin/buildout -c buildout.cfg -N -t 3


.PHONY: help prerequisites install test test:
bin/test
bin/flake8 plonesocial


help: bin/buildout: bin/python
@echo "Please use \`make <target>' where <target> is one of" bin/easy_install zc.buildout==1.6.3
@echo " prerequisites Install requisites" bin/easy_install distribute==0.6.28
@echo " install Install"
@echo " tests Run all testes"


prerequisites: bin/python:
sudo apt-get install -qq pep8 pyflakes virtualenv --clear --no-site-packages --distribute .
mkdir -p buildout-cache/downloads


install: prerequisites buildout-cache/downloads:
python bootstrap.py -c travis.cfg [ -d buildout-cache ] || mkdir -p buildout-cache/downloads
bin/buildout -c travis.cfg $(options)
clean:
rm -rf bin/* .installed.cfg parts/download


tests:
bin/test
pyflakes plonesocial/
pep8 --ignore=$(pep8_ignores) plonesocial/
12 changes: 11 additions & 1 deletion buildout.cfg
@@ -1,9 +1,19 @@
[buildout] [buildout]
extends = extends =
http://svn.plone.org/svn/collective/buildout/plonetest/test-4.x.cfg https://raw.github.com/collective/buildout.plonetest/master/travis-4.x.cfg


package-name = plonesocial.microblog package-name = plonesocial.microblog
package-extras = [test] package-extras = [test]


parts +=
flake8

[versions] [versions]
zc.buildout = 1.6.3 zc.buildout = 1.6.3

[flake8]
recipe = zc.recipe.egg
eggs = flake8
${instance:eggs}
entry-points =
flake8=flake8.run:main
9 changes: 0 additions & 9 deletions travis.cfg

This file was deleted.

0 comments on commit 589e333

Please sign in to comment.