Skip to content

Commit

Permalink
port to dune from jbuilder
Browse files Browse the repository at this point in the history
Signed-off-by: Anil Madhavapeddy <[email protected]>
  • Loading branch information
avsm committed Sep 19, 2018
1 parent 1c78120 commit b0d713f
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ language: c
script: bash -ex ./.docker-run.sh
env:
global:
- OCAML_VERSIONS="4.03.0 4.04.2 4.05.0 4.06.0"
- OCAML_VERSIONS="4.03.0 4.04.2 4.05.0 4.06.0 4.07.0"
matrix:
- DISTRO="debian-9"
- DISTRO="alpine-3.6"
Expand Down
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* Add ARM32 (aarch32, arm32v7) architecture.
* Add more OCaml 4.07.0 functions and mark it as latest stable.
* Port to Dune from Jbuilder.

## v0.4.0

Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
.PHONY: build clean test

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

doc:
jbuilder build @doc
dune build @doc

test:
jbuilder runtest
dune runtest

install:
jbuilder install
dune install

uninstall:
jbuilder uninstall
dune uninstall

clean:
jbuilder clean
dune clean

publish-doc: doc
rm -rf .gh-pages
Expand Down
3 changes: 3 additions & 0 deletions dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(library
(name ocaml_version)
(public_name ocaml-version))
2 changes: 2 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(lang dune 1.0)
(name ocaml-version)
6 changes: 0 additions & 6 deletions jbuild

This file was deleted.

6 changes: 3 additions & 3 deletions ocaml-version.opam
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ dev-repo: "https://github.com/avsm/ocaml-version.git"
bug-reports: "https://github.com/avsm/ocaml-version/issues"
tags: ["org:ocamllabs"]
depends: [
"jbuilder" {build & >="1.0+beta10"}
"dune" {build}
]
build: [
["jbuilder" "subst" "-p" name "--name" name] {pinned}
["jbuilder" "build" "-p" name "-j" jobs]
["dune" "subst"] {pinned}
["dune" "build" "-p" name "-j" jobs]
]
available: [ ocaml-version >= "4.03.0"]
2 changes: 0 additions & 2 deletions pkg/pkg.ml

This file was deleted.

0 comments on commit b0d713f

Please sign in to comment.