Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
clecat committed Mar 29, 2024
1 parent 8b93b37 commit a34924d
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 31 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ jobs:
os:
- macos-latest
ocaml-version:
- 4.12.0
- 4.11.1
- 4.10.2
- 4.09.1
- 4.08.1
- 5.1.1
- 5.1.0

runs-on: ${{ matrix.os }}

Expand Down
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### Pending

- Move to Eio (#37, @patricoferris, @clecat)
- Use _WIN32 and MAX_PATH on Windows to support MSVC (#34, @jonahbeckford)

### 0.5.0 (2020-04-30)
Expand Down
51 changes: 31 additions & 20 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1,34 +1,45 @@
(lang dune 2.8)

(name irmin-watcher)

(generate_opam_files true)

(source (github mirage/irmin-watcher))
(source
(github mirage/irmin-watcher))

(license ISC)

(authors "Thomas Gazagnaire")

(maintainers "Thomas Gazagnaire")

(documentation "https://mirage.github.io/irmin-watcher/")

(package
(name irmin-watcher)
(synopsis "Portable Irmin watch backends using FSevents or Inotify")
(description "irmin-watcher implements [Irmin's watch hooks][watch] for various OS,
using FSevents in macOS and Inotify on Linux.
irmin-watcher is distributed under the ISC license.
[watch]: http://mirage.github.io/irmin/irmin/Irmin/Private/Watch/index.html#type-hook
")
(description
"irmin-watcher implements [Irmin's watch hooks][watch] for various OS,\nusing FSevents in macOS and Inotify on Linux.\n\nirmin-watcher is distributed under the ISC license.\n\n[watch]: http://mirage.github.io/irmin/irmin/Irmin/Private/Watch/index.html#type-hook\n")
(depends
(ocaml (>= "4.02.0"))
(alcotest :with-test)
(mtime (and :with-test (>= "2.0.0")))
(inotify (= :os "linux"))
(cf-lwt (>="0.4"))
lwt
logs
fmt
astring
fsevents-lwt
)
)
(ocaml
(>= "5.1.0"))
(alcotest :with-test)
(mtime
(and
:with-test
(>= "2.0.0")))
(inotify
(= :os "linux"))
(cf-lwt
(>= "0.4"))
lwt
(eio
(>= "1.0"))
(eio_main
(and
:with-test
(>= "1.0")))
logs
fmt
astring
fsevents-lwt))
4 changes: 3 additions & 1 deletion irmin-watcher.opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ doc: "https://mirage.github.io/irmin-watcher/"
bug-reports: "https://github.com/mirage/irmin-watcher/issues"
depends: [
"dune" {>= "2.8"}
"ocaml" {>= "4.02.0"}
"ocaml" {>= "5.1.0"}
"alcotest" {with-test}
"mtime" {with-test & >= "2.0.0"}
"inotify" {os = "linux"}
"cf-lwt" {>= "0.4"}
"lwt"
"eio" {>= "1.0"}
"eio_main" {with-test & >= "1.0"}
"logs"
"fmt"
"astring"
Expand Down
2 changes: 0 additions & 2 deletions src/backend.inotify.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
%%NAME%% %%VERSION%%
---------------------------------------------------------------------------*)

open Lwt.Infix

let src = Logs.Src.create "irw-inotify" ~doc:"Irmin watcher using Inotify"

module Log = (val Logs.src_log src : Logs.LOG)
Expand Down
1 change: 0 additions & 1 deletion src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
fmt
logs
astring
lwt_eio
eio.unix
(select
backend.ml
Expand Down
2 changes: 1 addition & 1 deletion src/hook.mli
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ val v :
Watchdog.hook
(** [v ~sw ~wait_for_changes ~dir] is the watchdog hook using [wait_for_changes]
to detect filesystem updates in the directory [dir]. The polling
implemention just calls [Lwt_unix.sleep]. The switch is used for the forked
implemention just calls [Eio_unix.sleep]. The switch is used for the forked
callback function. *)

(*---------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion test/test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let clean () =

let run f () =
clean ();
f ()
try f () with Failure s when s = "Cancelled" -> ()

let rec mkdir d =
let perm = 0o0700 in
Expand Down

0 comments on commit a34924d

Please sign in to comment.