Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

provide a virtualenv-enabled Travis buildout that can be debugged on …

…a dev box
  • Loading branch information...
commit 2917ef605528d5cce131fa78b576c3207d72b3ab 1 parent 70c6208
@gyst gyst authored
Showing with 29 additions and 25 deletions.
  1. +1 −0  .gitignore
  2. +18 −14 Makefile
  3. +10 −2 buildout.cfg
  4. +0 −9 travis.cfg
View
1  .gitignore
@@ -14,3 +14,4 @@ var/
include/
lib/
dist/
+buildout-cache
View
32 Makefile
@@ -1,18 +1,22 @@
-# convenience makefile to boostrap & run buildout
-# use `make options=-v` to run buildout with extra options
+default: buildout test
-pep8_ignores = E501
-options = -N -q -t 3
+buildout: bin/buildout buildout-cache/downloads
+ bin/buildout -c buildout.cfg -N -t 3
-prerequisites:
- sudo apt-get install -qq pep8 pyflakes
- mkdir -p buildout-cache/downloads
+test:
+ bin/test
+ bin/flake8 plonesocial
-install: prerequisites
- python bootstrap.py -c travis.cfg
- bin/buildout -c travis.cfg $(options)
+bin/buildout: bin/python
+ bin/easy_install zc.buildout==1.6.3
+ bin/easy_install distribute==0.6.28
+
+bin/python:
+ virtualenv --clear --no-site-packages --distribute .
+
+buildout-cache/downloads:
+ [ -d buildout-cache ] || mkdir -p buildout-cache/downloads
+
+clean:
+ rm -rf bin/* .installed.cfg parts/download
-tests:
- bin/test
- pyflakes plonesocial/
- pep8 --ignore=$(pep8_ignores) plonesocial/
View
12 buildout.cfg
@@ -1,11 +1,19 @@
[buildout]
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.activitystream
package-extras = [test]
+parts +=
+ flake8
+
[versions]
zc.buildout = 1.6.3
-
+[flake8]
+recipe = zc.recipe.egg
+eggs = flake8
+ ${instance:eggs}
+entry-points =
+ flake8=flake8.run:main
View
9 travis.cfg
@@ -1,9 +0,0 @@
-[buildout]
-extends =
- https://raw.github.com/collective/buildout.plonetest/master/travis-4.x.cfg
-
-package-name = plonesocial.activitystream
-package-extras = [test]
-
-[versions]
-zc.buildout = 1.6.3
Please sign in to comment.
Something went wrong with that request. Please try again.