caml-list - the Caml user's mailing list
 help / Atom feed
From: Helmut Brandl <>
To: caml users <>
Subject: [Caml-list] Auto deploy to gh-pages with travis-ci
Date: Mon, 29 Apr 2019 18:33:06 -0500
Message-ID: <> (raw)

[-- Attachment #1: Type: text/plain, Size: 1253 bytes --]

Hello list,

I have used the ocaml/ocaml-ci-scripts to start continuous integration with travis-ci. I have copied the ‘.travis.yaml’ file into my repository and started pushing to my GitHub repo. With that everything works fine. Travis builds the project, runs the tests and creates the documentation (I use ‘dune build’, ‘dune build @runtest’ and ‘dune build @doc').

Now I wanted to start an automatic deploy to GitHub pages and added the following to my ‘.travis.yaml’ file:

  provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN
  keep_history: false
    branch: master
  local_dir: _build/default/_doc/_html/

First I have forgotten to add the last line and travis-ci added the hole root directory to GitHub pages. After adding the last list, the script cannot find the specific documentation directory. I have checked in the log file, that the build script generates the documentation. However it possibly removes it at the end.

Does anybody have an idea how I can find the built documentation? I have difficulties in understanding the ‘’ and ‘’ scripts which are obviously loaded by the ‘.travis.yaml’ file.

Thanks for hints.

[-- Attachment #2: Type: text/html, Size: 3486 bytes --]

                 reply index

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

caml-list - the Caml user's mailing list

Archives are clonable: git clone --mirror

AGPL code for this site: git clone public-inbox