Fix and align travis and platform build environments #8030
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request fixes the
platform.sh
deploy and aligns theplatform.sh
andtravis-ci.org
build to use the same version constraints and environments. Per @xabbuh in #8009 (comment) this PR has been made against the2.7
branch. Original implementation pulled from #8010 and #8009. Changes include:Update the
pip
version requirements pulled in by _build/.requirements.txt to latest releases, except forsphinx
which must be downgraded to1.3
until we find a solution forsphinx-php
(which there doesn't seem to be much interest in fixing: Fix Platform.sh Build #7402 (comment), Improve the Sphinx build process #7422, Compatibility with Sphinx 1.4 fabpot/sphinx-php#33).Use the same package management and constraint requirements for both
platform.sh
andtravis-ci.org
by having both utilize the_build/.requirements.txt
file when callingpip
.Use the same documentation build command to compile the documentation HTML (
make
) while still callingsphinx
with "strict mode" (or, more accurately, "turn warnings into errors mode") fortravis-ci.org
.On
platform.sh
, since thevitrualenv
folder is at the documentation root, remove allrst
files contained within it (pulled in from thepip
packages) via afind
command, so as to ensure the build doesn't pull them in (they would never appear in the output as they don't exist in the doctree, but if they contain errors or other inconsistencies, this could cause the build to fail while reading in their sources).