Skip to content

Commit

Permalink
Merge pull request #638 from plone/5.2
Browse files Browse the repository at this point in the history
Test Plone 5.2 on Travis
  • Loading branch information
tisto committed Nov 18, 2018
2 parents 0f87ed2 + d059821 commit f976ef0
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Expand Up @@ -29,9 +29,6 @@ matrix:
exclude:
- python: "2.7"
- python: "3.6"
allow_failures:
- python: "3.6"
env: PLONE_VERSION=5.2.x
before_install:
- mkdir -p $HOME/buildout-cache/{eggs,downloads}
- mkdir $HOME/.buildout
Expand Down
11 changes: 11 additions & 0 deletions Makefile
Expand Up @@ -13,6 +13,17 @@ bin/buildout: bin/pip
bin/pip install -r requirements.txt
@touch -c $@

build-plone-5.2: .installed.cfg
bin/pip install --upgrade pip
bin/pip install -r requirements.txt
bin/buildout -c plone-5.2.x.cfg

build-py3:
virtualenv --python=python3 .
bin/pip install --upgrade pip
bin/pip install -r requirements.txt
bin/buildout -c plone-5.2.x.cfg

bin/python bin/pip:
virtualenv --clear --python=python$(version) .

Expand Down
3 changes: 3 additions & 0 deletions base.cfg
Expand Up @@ -189,3 +189,6 @@ mode = 755
[sources]
plone.rest = git git://github.com/plone/plone.rest.git pushurl=git@github.com:plone/plone.rest.git branch=master
plone.schema = git git://github.com/plone/plone.schema.git pushurl=git@github.com:plone/plone.schema.git branch=newjsonschemafield

[versions]
plone.restapi =
17 changes: 15 additions & 2 deletions plone-5.2.x.cfg
@@ -1,5 +1,18 @@
[buildout]
extends =
base.cfg
http://dist.plone.org/release/5.1.4/versions.cfg
versions.cfg
http://dist.plone.org/release/5.2a1-pending/versions.cfg
find-links += http://dist.plone.org/thirdparty/
versions=versions

[versions]
plone.restapi =
# Sphinx
Sphinx = 1.6.5
docutils = 0.14
Pygments = 2.2.0
sphinxcontrib-httpexample = 0.7.0
sphinxcontrib-httpdomain = 1.5.0
sphinx-rtd-theme = 0.2.4
Jinja2 = 2.10
Babel = 2.5.1
4 changes: 4 additions & 0 deletions setup.py
Expand Up @@ -25,7 +25,11 @@
]

PY2_ONLY = [
'archetypes.schemaextender',
'Products.Archetypes',
'Products.contentmigration',
'Products.ATContentTypes',
'plone.app.blob',
'plone.app.collection',
]

Expand Down
2 changes: 1 addition & 1 deletion src/plone/restapi/deserializer/configure.zcml
Expand Up @@ -30,7 +30,7 @@
<adapter factory=".atfields.FileFieldDeserializer" />
<adapter factory=".atfields.ReferenceFieldDeserializer" />
</configure>

<configure zcml:condition="have plone-5">
<adapter factory=".controlpanels.ControlpanelDeserializeFromJson" />
</configure>
Expand Down
5 changes: 5 additions & 0 deletions test-no-sphinx-warnings.in
Expand Up @@ -3,6 +3,11 @@
# CI test that should fail if there are warnings or even errors when building
# the Sphinx docs.

if [ "$PLONE_VERSION" = "5.2.x" ]; then
echo "Skipping checks for sphinx warnings for 5.2.x"
exit 0
fi

set -euo pipefail

BUILD_LOG="sphinx_build.log"
Expand Down

0 comments on commit f976ef0

Please sign in to comment.