Skip to content

Commit

Permalink
Merge pull request #69 from edwintorok/master
Browse files Browse the repository at this point in the history
Move to dune and fix opam dependencies
  • Loading branch information
lindig committed Sep 18, 2018
2 parents 7c13fb1 + d829642 commit 0f085e3
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 43 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -6,8 +6,8 @@ script:
- bash -ex .travis-docker.sh
env:
global:
- OCAML_VERSION=4.04.2
- PINS="xen-api-client:."
- OCAML_VERSION=4.06
- PINS="xen-api-client:. xen-api-client-lwt:. xen-api-client-async:."
- PACKAGE=xen-api-client
- DISTRO="ubuntu-14.04"
matrix:
Expand Down
18 changes: 9 additions & 9 deletions Makefile
Expand Up @@ -7,32 +7,32 @@ BRANCH ?= master
.PHONY: release build async-examples lwt-examples install uninstall clean test doc reindent regenerate

release:
jbuilder build @install
dune build @install --profile=release

build:
jbuilder build @install --dev
dune build @install

async-examples:
jbuilder build @async_examples/examples
dune build @async_examples/examples

lwt-examples:
jbuilder build @lwt_examples/examples
dune build @lwt_examples/examples

install:
jbuilder install --prefix=$(OPAM_PREFIX) --libdir=$(OPAM_LIBDIR)
dune install --prefix=$(OPAM_PREFIX) --libdir=$(OPAM_LIBDIR)

uninstall:
jbuilder uninstall --prefix=$(OPAM_PREFIX) --libdir=$(OPAM_LIBDIR)
dune uninstall --prefix=$(OPAM_PREFIX) --libdir=$(OPAM_LIBDIR)

clean:
jbuilder clean
dune clean

test:
jbuilder runtest
dune runtest

# requires odoc
doc:
jbuilder build @doc
dune build @doc

gh-pages:
bash .docgen.sh
Expand Down
11 changes: 7 additions & 4 deletions xen-api-client-async.opam
Expand Up @@ -12,15 +12,18 @@ tags: [
"org:xapi-project"
]

build: [[ "jbuilder" "build" "-p" name ]]
build: [[ "dune" "build" "-p" name ]]

depends: [
"jbuilder" {build & >= "1.0+beta11"}
"astring"
"dune" {build}
"async" {>= "v0.9.0"}
"async_unix"
"base-threads"
"cohttp" {>= "0.22.0"}
"rpc" {>= "1.9.52"}
"core"
"rpclib"
"uri"
"xen-api-client"
"xmlm"
"ounit" {test}
]
26 changes: 12 additions & 14 deletions xen-api-client-lwt.opam
Expand Up @@ -12,20 +12,18 @@ tags: [
"org:xapi-project"
]

build: [[ "jbuilder" "build" "-p" name ]]
build: [[ "dune" "build" "-p" name ]]

depends: [
"jbuilder" {build & >= "1.0+beta11"}
"astring"
"cohttp" {>= "0.22.0"}
"cstruct" {>= "1.0.1"}
"lwt" {>= "3.0.0"}
"lwt_ssl"
"re"
"rpc" {>= "1.9.51"}
"ssl"
"uri"
"uuidm"
"xen-api-client"
"xmlm"
"dune" {build}
"cohttp" {>= "0.22.0"}
"cstruct" {>= "1.0.1"}
"lwt" {>= "3.0.0"}
"lwt_ssl"
"re"
"rpclib"
"uri"
"xen-api-client"
"xmlm"
"ounit" {test}
]
28 changes: 14 additions & 14 deletions xen-api-client.opam
Expand Up @@ -12,20 +12,20 @@ tags: [
"org:xapi-project"
]

build: [[ "jbuilder" "build" "-p" name ]]
build-test: [[ "jbuilder" "runtest" "-p" name "-j" jobs ]]
build: [[ "dune" "build" "-p" name ]]
build-test: [[ "dune" "runtest" "-p" name "-j" jobs ]]

depends: [
"jbuilder" {build & >= "1.0+beta11"}
"astring"
"cohttp" {>= "0.22.0"}
"ounit" {test}
"re"
"rpc" {>= "1.9.51"}
"uri"
"uuidm"
"xapi-client"
"xapi-rrd"
"xapi-types"
"xmlm"
"dune" {build & >= "1.0+beta11"}
"astring"
"cohttp" {>= "0.22.0"}
"re"
"rpclib"
"rrd"
"uri"
"uuidm"
"xapi-client"
"xapi-types"
"xmlm"
"ounit" {test}
]

0 comments on commit 0f085e3

Please sign in to comment.