caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Malcolm Matalka <mmatalka@gmail.com>
To: caml-list@inria.fr
Subject: [Caml-list] How to test a repository using OPAM?
Date: Sat, 31 Dec 2016 09:41:18 +0000	[thread overview]
Message-ID: <86ful4e8qp.fsf@gmail.com> (raw)

I'm setting up testing infrastructure for some of my repositories and
I'm running into a bit of an issue.  My setup looks like:

1. Update the standard opam-repository

2. Upgrade any dependencies (I want to know if I break against the
bleeding edge

3. Automatically generate an OPAM package for my repository.

4. opam install --deps-only -t my-package

5. make tests

The -t is in step 4 because I need the testing dependencies for
my-package in order to run the tests.  The problem I have is that the -t
runs the tests for all packages it installs.  I tried doing the install
in two steps, the first without the -t and the second with, but that
doesn't solve the problem because it installs testing libraries for all
deps and runs those tests.  In my case, I depend on Ctypes which depends
on Lwt for testing and the Lwt tests take far too long.

Is there a way to tell opam to only install the testing libraries needed
to test but to not test?  On top of that, can I tell it to only install
the testing libraries needed for the package I want to install and not
its dependencies?

Thanks,
/Malcolm


             reply	other threads:[~2016-12-31  9:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-31  9:41 Malcolm Matalka [this message]
2017-01-02 22:23 ` Ashish Agarwal

Reply instructions:

You may reply publicly 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=86ful4e8qp.fsf@gmail.com \
    --to=mmatalka@gmail.com \
    --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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).