Skip to content

Amend Platform and Travis scripts to fix build failures and align their process #8010

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

robfrawley
Copy link
Contributor

@robfrawley robfrawley commented Jun 8, 2017

This is a test to see if the platform.sh deploy and travis-ci.org build complete successfully, without removing lines that break newer versions of sphinx (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 for sphinx which must be downgraded to 1.3 as the documentation fails to build using 1.5 or 1.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 and travis-ci.org by having both utilize the _build/.requirements.txt file when calling pip.

  • Use the same documentation build command to compile the documentation HTML (make) while still calling sphinx with "strict mode" (or, more accurately, "turn warning into errors mode") for travis-ci.org.

  • On platform.sh, since the vitrualenv folder is at the documentation root, remove all rst files contained within it (pulled in from the pip packages) via a find 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:

  • Fix the failing platform.sh build by downgrading the sphinx version constraint (we will be forever stuck at shinx@1.3.* until we resolve the underlying issues, though: see Remove/update lines causing build failures #8009).
  • Align both platform.sh and travis-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 to pip and make calls).

… pip requirements, remove rst files from pip packages
@robfrawley robfrawley changed the title [WIP] Amend build scripts to fix build failures Amend build scripts to fix build failures Jun 8, 2017
@robfrawley robfrawley changed the title Amend build scripts to fix build failures Amend Platform and Travis scripts to fix build failures and align their process Jun 8, 2017
@robfrawley
Copy link
Contributor Author

Note: If you guys choose this resolution to #8009, I think we should likely rebase this onto lower branch. If this is the case, let me know what branch you guys would prefer. I'd suggest at least 3.3, which is where the breaking changes occurred (AFAIK).

@robfrawley robfrawley closed this Jun 10, 2017
weaverryan added a commit that referenced this pull request Jun 13, 2017
…frawley)

This PR was merged into the 2.7 branch.

Discussion
----------

Fix and align travis and platform build environments

This pull request fixes the `platform.sh` deploy and aligns the `platform.sh` and `travis-ci.org` build to use the same version constraints and environments. Per @xabbuh in #8009 (comment) this PR has been made against the `2.7` branch. Original implementation pulled from #8010 and #8009. Changes include:

- Update the `pip` version requirements pulled in by [_build/.requirements.txt](https://github.com/robfrawley/symfony-docs/blob/feature-align-travis-and-platform-build/_build/.requirements.txt) to latest releases, except for `sphinx` which must be downgraded to `1.3` until we find a solution for `sphinx-php` (which there doesn't seem to be much interest in fixing: #7402 (comment), #7422, fabpot/sphinx-php#33).

- Use the same package management and constraint requirements for both `platform.sh` and `travis-ci.org` by having both utilize the `_build/.requirements.txt` file when calling `pip`.

- Use the same documentation build command to compile the documentation HTML (`make`) while still calling `sphinx` with "strict mode" (or, more accurately, "turn warnings into errors mode") for `travis-ci.org`.

- On `platform.sh`, since the `vitrualenv` folder is at the documentation root, remove all `rst` files contained within it (pulled in from the `pip` packages) via a `find` 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`

Commits
-------

764bc37 align travis and platform build environments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants