Skip to content

Commit

Permalink
Merge pull request #10 from kc284/master
Browse files Browse the repository at this point in the history
Moved from jbuilder to dune.
  • Loading branch information
edwintorok authored Dec 10, 2018
2 parents 1fd708e + 4dc4519 commit 58de8f2
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 41 deletions.
17 changes: 9 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
language: c
install:
- wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-opam.sh
- wget https://raw.githubusercontent.com/simonjbeaumont/ocaml-travis-coveralls/master/travis-coveralls.sh
script: bash -ex .travis-opam.sh
sudo: required
service: docker
install: wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-docker.sh
script: bash -ex .travis-docker.sh
env:
global:
- PACKAGE="cdrom"
- PINS="cdrom:."
- BASE_REMOTE="https://github.com/xapi-project/xs-opam.git"
matrix:
- OCAML_VERSION=4.02 PACKAGE=cdrom
- OCAML_VERSION=4.03 PACKAGE=cdrom
- OCAML_VERSION=4.04 PACKAGE=cdrom
- OCAML_VERSION=4.05 PACKAGE=cdrom
- DISTRO="debian-9-ocaml-4.06"
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
0.9.4 (06-Dec-2018):
* port to dune

0.9.3 (04-Aug-2017):
* port to jbuilder

Expand Down
4 changes: 1 addition & 3 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@ include a Signed-off-by: line.
Maintainers list
----------------

* David Scott <[email protected]>
* Euan Harris <[email protected]>

* [email protected]
22 changes: 10 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
.PHONY: build release install uninstall clean test doc reindent
PROFILE=release

build:
jbuilder build @install --dev
.PHONY: build install uninstall clean test doc reindent

release:
jbuilder build @install
build:
dune build @install --profile=$(PROFILE)

install:
jbuilder install
dune install

uninstall:
jbuilder uninstall
dune uninstall

clean:
jbuilder clean
dune clean

test:
jbuilder runtest
dune runtest --profile=$(PROFILE)

# requires odoc
doc:
jbuilder build @doc
dune build @doc --profile=$(PROFILE)

reindent:
ocp-indent --inplace **/*.ml
ocp-indent --inplace **/*.mli
git ls-files '*.ml*' | xargs ocp-indent --inplace
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Query CDROM devices
===================

[![Build Status](https://travis-ci.org/xapi-project/cdrom.svg?branch=master)](https://travis-ci.org/xapi-project/cdrom)

Simple OCaml bindings for functions to query the state of CDROM devices.
Expand Down
14 changes: 9 additions & 5 deletions cdrom.opam
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
opam-version: "1.2"
opam-version: "2.0"
name: "cdrom"
version: "0.9.4"
maintainer: "[email protected]"
author: "Dave Scott <[email protected]>"
homepage: "https://github.com/xapi-project/cdrom"
dev-repo: "https://github.com/xapi-project/cdrom"
dev-repo: "git+https://github.com/xapi-project/cdrom.git"
bug-reports: "https://github.com/xapi-project/cdrom/issues"
build: ["jbuilder" "build" "-p" name "-j" jobs]
build: ["dune" "build" "-p" name "-j" jobs]
depends: [
"jbuilder" {build}
"ocaml"
"dune" {build}
]
tags: [ "org:xapi-project" ]
synopsis: "Query the state and contents of CDROM devices under Linux"
authors: "Dave Scott <[email protected]>"
5 changes: 5 additions & 0 deletions cli/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(executable
(name query)
(public_name query-cdrom)
(libraries cdrom)
)
6 changes: 0 additions & 6 deletions cli/jbuild

This file was deleted.

1 change: 1 addition & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(lang dune 1.4)
6 changes: 6 additions & 0 deletions lib/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(library
(name cdrom)
(public_name cdrom)
(libraries unix)
(c_names cdrom_stubs)
)
7 changes: 0 additions & 7 deletions lib/jbuild

This file was deleted.

0 comments on commit 58de8f2

Please sign in to comment.