caml-list - the Caml user's mailing list
 help / Atom feed
From: Helmut Brandl <helmut.brandl@gmx.net>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] Opam packages and CI
Date: Wed, 10 Apr 2019 09:57:18 -0500
Message-ID: <3F095A3C-01A8-4488-923A-48D0D00C9DF6@gmx.net> (raw)
In-Reply-To: <B05D6E80-2D79-4F71-AAA2-99364F10974A@recoil.org>

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

Thanks for all the hints. Some experiences:

I have used the .travis.yaml file from the repo ocaml/ocaml-ci-scripts, reduced the build matrix to a minimum (only 4.07) and it worked out of the box. However to took approx 8 min for linux and 12 min for osx.

Therefore I have changed in the travis file ‘.travis-opam.sh’ to ‘.travis-docker.sh’ and added ’services: -docker’, because docker has been recommended by many.

Now the build failed after some seconds. Maybe there is more to do than this trivial change to switch to docker.

Is there some documentation on how to use docker? Is it worth the effort i.e. will it run faster or has it more features?

Regards
Helmut


> On Apr 9, 2019, at 16:36, Anil Madhavapeddy <anil@recoil.org> wrote:
> 
> On 9 Apr 2019, at 19:14, Helmut Brandl <helmut.brandl@gmx.net <mailto:helmut.brandl@gmx.net>> wrote:
>> 
>> Hello list,
>> 
>> I would like to run some continuous integration like travis ci on my opam package. Unfortunately ocaml is not supported directly by travis. But I have found the GitHub repository ocaml/ocaml-ci-scripts and some instructions on how to use it.
> 
> Dear Helmut,
> 
>> My questions:
>> 
>> - Is this a stable form on how to use travis with ocaml?
>> 
>> - Are there experiences and are they good?
> 
> Last I checked, there were over 400 repositories on GitHub using ocaml-ci-scripts.  It's pretty stable.
> 
>> - Why has this solution been chosen instead of integrating ocaml support directly into travis?
> 
> Why do you need direct integration with Travis?  The use of the Docker support has made the necessity for that essentially obsolete.
> 
> See, for example:
> https://github.com/mirage/ocaml-cohttp/blob/master/.travis.yml <https://github.com/mirage/ocaml-cohttp/blob/master/.travis.yml>
> 
> in cohttp, which uses Travis and Docker to test the libraries on a variety of Linux distributions.
> 
>> - Isn’t the solution an overkill, because it requires a complete opam and ocaml installation on the travis machines in order to test an opam package? Isn’t there the risk that travis might block this form of usage in the future?
>> 
>> - Is there a better method to use CI with ocaml?
> 
> This solution is pretty good for most people. I'd encourage you to give it a try, and to contribute back any improvements or feature requests you might have after trying it out for a while.
> 
> regards,
> Anil


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

  reply index

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-09 18:14 Helmut Brandl
2019-04-09 18:49 ` Simon Cruanes
2019-04-09 18:54   ` Daniil Baturin
2019-04-09 21:36 ` Anil Madhavapeddy
2019-04-10 14:57   ` Helmut Brandl [this message]
2019-04-10 14:20 ` Louis Roché

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=3F095A3C-01A8-4488-923A-48D0D00C9DF6@gmx.net \
    --to=helmut.brandl@gmx.net \
    --cc=anil@recoil.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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 https://inbox.ocaml.org/caml-list

AGPL code for this site: git clone https://public-inbox.org/ public-inbox