From patchwork Fri Jun 7 03:11:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Mendoza-Jonas X-Patchwork-Id: 1111559 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45Knd803gfz9sNT for ; Fri, 7 Jun 2019 13:12:12 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mendozajonas.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b="TIF063wF"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="8C6JCwfR"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 45Knd754qWzDqq8 for ; Fri, 7 Jun 2019 13:12:11 +1000 (AEST) X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=mendozajonas.com (client-ip=66.111.4.28; helo=out4-smtp.messagingengine.com; envelope-from=sam@mendozajonas.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=mendozajonas.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b="TIF063wF"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="8C6JCwfR"; dkim-atps=neutral Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 45Kncw6YMSzDqpC for ; Fri, 7 Jun 2019 13:12:00 +1000 (AEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 2C3AA21910; Thu, 6 Jun 2019 23:11:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 06 Jun 2019 23:11:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= mendozajonas.com; h=from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=fm3; bh=ekUDdAGm4rLNH ewC7TKa02CIK/F7D1+9Q2Lkl2SrY1Y=; b=TIF063wF5azrAEvFIvKJVDWzRo/sg NtjlwYKx4nWFucJRx8UAFod6iDiwsUE0ixEB1RWCNIbcZAjmsn6TbQDf0Pno46ME oQZN7BCkjYBaN14tF8ciFnOYCJjWtSfzDWEaaJVIp9yM7JTAo+aT9PV2t1WXgYSg 2NqTTyqkegvb+E99E4eTHCE/lQQCh5t6NLRB+wuAC+gcDBd8Pxn4hqbrc8NcX+0q G26k6KJuu/QNE1uELw3mO9i1Fgl3QINb7QegqIQvz3foBRbeNe2znMuYAzs9hc+G BnuHRuc7voZpPHEA4ZtU/JumahzC2zPfwZ1EqhYDS1RvRIL5kp04pUG4w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=ekUDdAGm4rLNHewC7 TKa02CIK/F7D1+9Q2Lkl2SrY1Y=; b=8C6JCwfR8cXplmZxjn7n0qCB+ncIg459u uz89RS9GgrGG3kauVaSLIWptAYKKTwW98zC50WfPiQbseF8FqDrfjAVjPEkx/dEz jUHa6TOrThmmWvxrAuZhv2tRnDqiwbwXqMM1dsVG4mZ95WEIyTsp2evuv1VwSMFK gCcv0C4KgJ1jiZ2DlRMmRVJdwB237tGFGetECH1saWQbT3TgAGJwlcVs3A+qWGH/ /4nHo0AxMf3HHZ8s5nuQl6YDufEeLQ0Nh52wClLZasZL52CYO5kyDt1wyO4/jDJr 6CfUHTLYbT3sU60XRyue9PQBtTdbTUtPr6WpFDYddR+CFGXNoMokQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudeghedgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepufgrmhhuvghlucfovghnughoiigrqdflohhnrghsuceoshgrmhes mhgvnhguohiirghjohhnrghsrdgtohhmqeenucffohhmrghinhepghhithhhuhgsrdhioh dpohiilhgrsghsrdhorhhgnecukfhppeduvddvrdelledrkedvrddutdenucfrrghrrghm pehmrghilhhfrhhomhepshgrmhesmhgvnhguohiirghjohhnrghsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: from v4.ozlabs.ibm.com (unknown [122.99.82.10]) by mail.messagingengine.com (Postfix) with ESMTPA id 393F180062; Thu, 6 Jun 2019 23:11:54 -0400 (EDT) From: Samuel Mendoza-Jonas To: petitboot@lists.ozlabs.org Subject: [PATCH] travis: Publish sphinx docs to Github pages Date: Fri, 7 Jun 2019 13:11:47 +1000 Message-Id: <20190607031147.3143-1-sam@mendozajonas.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Mendoza-Jonas Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" Use Travis to build and publish the Sphinx docs automatically. Signed-off-by: Samuel Mendoza-Jonas --- In particular on the open-power/petitboot repository this will publish the docs to https://open-power.github.io/petitboot/ It's not on ozlabs.org but it is the next best place and very easy to set up :) .travis.yml | 18 ++++++++++++++++++ doc/conf.py | 3 +-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index cff60dce..52566286 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,11 +8,29 @@ matrix: include: - os: linux name: "linux" + env: DOCS="true" - os: linux-ppc64le name: "linux-ppc64le" +addons: + apt: + packages: + - python-pip + before_script: - ./docker/build-builder +install: + - "sudo pip install sphinx" script: - ./docker/build-pb --check --verbose --configure-opts "--enable-platform-arm64 --enable-platform-powerpc" + - if [ "$DOCS" == "true" ]; then cd doc/; make html; fi + +deploy: + provider: pages + skip-cleanup: true + github-token: $GITHUB_TOKEN + local_dir: "doc/_build/html" + on: + branch: master + condition: "$DOCS = true" diff --git a/doc/conf.py b/doc/conf.py index 2403c1db..ecef3043 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -30,8 +30,7 @@ release = 'v1.10.3' # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = [ -] +extensions = ['sphinx.ext.githubpages'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates']