From: Heinrich Schuchardt Date: Fri, 21 Feb 2020 05:43:40 +0100 Subject: [PATCH 1/2] doc/Makefile: turn warnings into errors In-Reply-To: <7e6426c0-8e16-b600-7f54-122a5080db00@gmx.de> References: <20200221032637.142330-1-xypron.glpk@gmx.de> <20200221032637.142330-2-xypron.glpk@gmx.de> <20200221040600.GF18302@bill-the-cat> <7e6426c0-8e16-b600-7f54-122a5080db00@gmx.de> Message-ID: <582264fd-de07-3127-8d20-3100db2f8bc2@gmx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 2/21/20 5:31 AM, Heinrich Schuchardt wrote: > On 2/21/20 5:06 AM, Tom Rini wrote: >> On Fri, Feb 21, 2020 at 04:26:36AM +0100, Heinrich Schuchardt wrote: >> >>> Several patches delivered incorrect restructured text as >>> documentation. We >>> should be able to discover this in Travis CI or Gitlab CI. >>> >>> So let us turn all build warnings into errors. >>> >>> We cannot add --keep-going as Gitlab does not use sphinx-build >>> version 1.8 >>> or later yet. >> >> Why can't we upgrade sphinx-build so that we then run these builds also >> in Gitlab / Azure?? Thanks! Maybe this was unclear to you: My choice was not to use --keep-going because I want run the test in the current Gitlab Docker image. With the patch as it is we can run on Gitlab. But there is another package (imagemagick) missing in the Dockerimage. I am currently testing if this is the only missing package. I will submit the .gitlab-ci.yml patch thereafter. > > This is what --keep-going does: > > With -W option, keep going processing when getting warnings to the end > of build, and sphinx-build exits with exit status 1. > > So for the purpose of checking if there is *any* error in the > documentation this flag does not make a difference. > > If we put the --keep-going flag into our Makefile, we require everybody > in the U-Boot community to upgrade his Sphinx installation if he wants > to run 'make htmldocs'. Is this what we want? > > Our Dockerfile is based on ubuntu:bionic-20200112. You could move to > ubuntu:eoan-20200114 to get Sphinx 1.8.5. > > Best regards > > Heinrich