Skip to content

Commit

Permalink
Keep buildout artifacts in tox env dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed May 22, 2017
1 parent 0a836ed commit 83df247
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -10,9 +10,9 @@ install:
- pip install -U setuptools==`grep setuptools versions.cfg | awk '{print $3}'`
- pip install zc.buildout
- buildout bootstrap
- buildout tox:env=travis install test alltests
- buildout install test alltests
script:
- bin/alltests-travis -v
- bin/alltests -v
notifications:
email: false
cache:
Expand Down
12 changes: 4 additions & 8 deletions buildout.cfg
Expand Up @@ -6,7 +6,7 @@ develop = .
extends =
sources.cfg
versions.cfg
installed = .installed-${tox:env}.cfg
installed = .installed.cfg
parts =
test
zopescripts
Expand All @@ -25,13 +25,9 @@ auto-checkout =
Products.ZCatalog


[tox]
env = py27


[test]
recipe = zc.recipe.testrunner
script = test-${tox:env}
script = test
initialization =
import sys
import warnings
Expand Down Expand Up @@ -59,7 +55,7 @@ eggs = Zope2

[alltests]
recipe = zc.recipe.testrunner
script = alltests-${tox:env}
script = alltests
eggs =
AccessControl
Acquisition
Expand All @@ -81,7 +77,7 @@ eggs =

[ztktests]
recipe = zc.recipe.testrunner
script = ztktests-${tox:env}
script = ztktests
eggs =
zope.annotation
zope.browser
Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Expand Up @@ -3,9 +3,10 @@ envlist = py27,py34,py35,py36

[testenv]
commands =
{envbindir}/buildout -c {toxinidir}/buildout.cfg tox:env={envname} bootstrap
{envbindir}/buildout -c {toxinidir}/buildout.cfg tox:env={envname} install test alltests
{toxinidir}/bin/alltests-{envname}
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} bootstrap
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} install test alltests
{envbindir}/alltests
skip_install = true
deps =
setuptools==33.1.1
zc.buildout

0 comments on commit 83df247

Please sign in to comment.