Amend Platform and Travis scripts to fix build failures and align their process #8010
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 is a test to see if the
platform.sh
deploy andtravis-ci.org
build complete successfully, without removing lines that break newer versions ofsphinx
(as seen in #8009).The changes introduced by this pull request include:
Update the
pip
version requirements pulled in by _build/.requirements.txt to latest releases, except forsphinx
which must be downgraded to1.3
as the documentation fails to build using1.5
or1.6
(the latest releases) due to invalid code that causes the highlighting subroutine to fail.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 warning 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).find .virtualenv -type f -name "*.rst" -delete
There are two main goals of this pull request:
platform.sh
build by downgrading thesphinx
version constraint (we will be forever stuck atshinx@1.3.*
until we resolve the underlying issues, though: see Remove/update lines causing build failures #8009).platform.sh
andtravis-ci.org
so that, generally, one shouldn't fail while the other succeeds by ensuring both operate using the same build commands and constraints (relating both topip
andmake
calls).