Skip to content

Commit 3ea87b1

Browse files
committed
Bump ocaml max version to 4.12
1 parent beb30ac commit 3ea87b1

13 files changed

Lines changed: 71 additions & 90 deletions

File tree

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ env:
88
- TESTS=true
99
matrix:
1010
- OCAML_VERSION=4.03
11-
- OCAML_VERSION=4.04
12-
- OCAML_VERSION=4.05
11+
- OCAML_VERSION=4.11
1312
os:
1413
- linux

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### 1.0 (2020-11-05)
2+
3+
* Check compatibility up to 4.12 and bump dependencies
4+
* Migrate from jbuilder to dune
5+
16
### 0.1 (2017-05-23)
27

38
* Initial release

Makefile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,26 @@ INSTALL_ARGS := $(if $(PREFIX),--prefix $(PREFIX),)
22

33
# Default rule
44
default:
5-
jbuilder build @install
5+
dune build @install
66

77
test:
8-
jbuilder runtest
8+
dune runtest
99

1010
dev:
11-
jbuilder build --dev @install
11+
dune build
1212

1313
install:
14-
jbuilder install $(INSTALL_ARGS)
14+
dune install $(INSTALL_ARGS)
1515

1616
uninstall:
1717
jbuilder uninstall $(INSTALL_ARGS)
1818

1919
reinstall: uninstall reinstall
2020

2121
clean:
22-
rm -rf _build
22+
dune clean
2323

24-
.PHONY: default test dev install uninstall reinstall clean
24+
doc:
25+
dune build @doc
26+
27+
.PHONY: default test dev install uninstall reinstall clean doc

appveyor.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,16 @@ environment:
88
PACKAGE: nullable-array
99
TESTS: true
1010
matrix:
11-
- OPAM_SWITCH: 4.03.0+mingw64c
1211
- OPAM_SWITCH: 4.04.0+msvc64c
1312
- OPAM_SWITCH: 4.04.0+mingw32c
1413
- OPAM_SWITCH: 4.04.0+mingw64c
1514
- OPAM_SWITCH: 4.04.0+flambda+mingw64c
15+
- OPAM_SWITCH: 4.04.0+flambda+mingw64c
16+
- OPAM_SWITCH: 4.11.1+msvc64c
17+
- OPAM_SWITCH: 4.11.1+mingw32c
18+
- OPAM_SWITCH: 4.11.1+mingw64c
19+
- OPAM_SWITCH: 4.11.1+flambda+mingw64c
20+
- OPAM_SWITCH: 4.11.1+flambda+mingw64c
1621

1722
install:
1823
- ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/$env:FORK_USER/ocaml-ci-scripts/$env:FORK_BRANCH/appveyor-install.ps1"))

lib/.merlin

Lines changed: 0 additions & 3 deletions
This file was deleted.

lib/dune

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
(library
2+
(name nullable_array)
3+
(public_name nullable-array)
4+
(modules nullable_array))

lib/jbuild

Lines changed: 0 additions & 7 deletions
This file was deleted.

nullable-array.install

Lines changed: 0 additions & 18 deletions
This file was deleted.

nullable-array.opam

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
1-
opam-version: "1.2"
1+
opam-version: "2.0"
22
name: "ocplib-nullable-array"
3-
version: "0.1"
3+
version: "1.0.0"
44
maintainer: "Pierre Chambart <pierre.chambart@ocamlpro.com>"
5-
authors: "Pierre Chambart <pierre.chambart@ocamlpro.com>"
6-
homepage: "https://github.com/chambart/ocplib-nullable-array"
7-
bug-reports: "https://github.com/chambart/ocplib-nullable-array/issues"
5+
authors: "Pierre Chambart"
6+
homepage: "https://github.com/chambart/ocaml-nullable-array"
7+
bug-reports: "https://github.com/chambart/ocaml-nullable-array/issues"
88
license: "MIT"
9-
dev-repo: "https://github.com/chambart/ocplib-nullable-array.git"
9+
dev-repo: "git+https://github.com/chambart/ocaml-nullable-array.git"
10+
synopsis:
11+
"More efficient `'a option array`"
12+
description: """
1013

11-
build: [
12-
["jbuilder" "build" "--only-packages" "nullable-array" "--root" "." "-j" jobs "@install"]
13-
]
14+
Small self-contained library providing an efficient implementation for a type equivalent to `'a option array`
15+
"""
1416

15-
build-test: [
16-
["jbuilder" "runtest"]
17-
]
18-
19-
available: [
20-
ocaml-version >= "4.03" (* use Sys.opaque_identity *)
21-
& ocaml-version <= "4.06" (* need to be tested before announcing that a version is correct *)
17+
build: [
18+
["dune" "subst"] {pinned}
19+
["dune" "build" "-p" name "-j" jobs]
20+
["dune" "runtest" "-p" name "-j" jobs] {with-test}
21+
["dune" "build" "-p" name "@doc"] {with-doc}
2222
]
2323

2424
depends: [
25-
"jbuilder" {build & >= "1.0+beta8"}
25+
"dune" {>= "1.10"}
26+
"ocaml" {>= "4.03" (* use Sys.opaque_identity *)
27+
& < "4.13~"} (* need to be tested before announcing that a version is correct *)
2628
]

test/.merlin

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)