Skip to content

Commit a2f45d3

Browse files
authored
Update Ocaml to 4.13.1 (#28)
* Update Ocaml to 4.13.1 * Fix make coverage for new version of bisect-ppx-report * Update changelog to have correct version
1 parent a68a01c commit a2f45d3

File tree

11 files changed

+25
-20
lines changed

11 files changed

+25
-20
lines changed

.github/workflows/github-actions-pull-request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup Ocaml
1515
uses: avsm/[email protected]
1616
with:
17-
ocaml-version: 4.04.2
17+
ocaml-version: 4.13.1
1818
- name: Setup Python 2.7
1919
uses: actions/setup-python@v2
2020
with:

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ node_modules
77
.DS_Store
88
env*
99
*.pickle
10+
_coverage/

Makefile

+3-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ register:
4343
$(MAKE) -C src register
4444

4545
install:
46-
@ln -fs $(NEAL) /usr/local/bin/neal
47-
@echo installed at /usr/local/bin/neal
46+
@echo neal is at $(NEAL)
4847

4948
coverage:
5049
@COVERAGE=1 $(MAKE) test
51-
@opam exec -- bisect-ppx-report -html src/core/_build/coverage/ $$(find . -name _build -type d -exec echo -I {} \;) $$(find . -name 'bisect*.out')
52-
@find . -name 'bisect*out' | xargs rm
50+
@opam exec -- bisect-ppx-report html $$(find . -name '*.coverage') $$(find . -name _build -type d -exec echo --source-path {} \;)
51+
@find . -name '*.coverage' | xargs rm -r

docs/changelog.rst

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
Changelog
22
=========
33

4-
0.2.5 (Unreleased)
5-
------------------
4+
0.2.6
5+
------
6+
- Updates Ocaml to 4.13.1 to support building on arm64
7+
8+
0.2.5
9+
------
10+
- Add support for parsing Swift concurrency syntax
611

712
0.2.4
813
-----

docs/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
# built documents.
5555
#
5656
# The short X.Y version.
57-
version = u'0.2.4'
57+
version = u'0.2.6'
5858
# The full version, including alpha/beta/rc tags.
59-
release = u'0.2.4'
59+
release = u'0.2.6'
6060

6161
# The language for content autogenerated by Sphinx. Refer to documentation
6262
# for a list of supported languages.

docs/index.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ The recommended way of installing NEAL is through `Homebrew <https://brew.sh>`_,
7171
Installing from source
7272
++++++++++++++++++++++
7373

74-
To build and install NEAL from source, make sure you have `OPAM`__ installed and that you're using OCaml 4.04 or later.
74+
To build and install NEAL from source, make sure you have `OPAM`__ installed and that you're using OCaml 4.13.1 or later.
7575

7676
.. code-block:: bash
7777
7878
$ brew install opam
7979
$ opam init
80-
$ opam switch 4.04.2
80+
$ opam switch 4.13.1
8181
$ eval "$(opam config env)"
8282
8383
__ https://opam.ocaml.org/

src/core/driver/fs.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
module StringSet = Set.Make(String)
2222

23-
let realpath = Core.Std.Filename.realpath
23+
let realpath = Core.Filename.realpath
2424

2525
let join_path dir path =
2626
Filename.concat dir path |> realpath

src/core/main.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ let main rules providers reporters stdin filelist print_ast strict strict_parse
6868
let files' =
6969
match filelist with
7070
| None -> files
71-
| Some file -> Core.Std.In_channel.read_lines file
71+
| Some file -> Core.In_channel.read_lines file
7272
in
7373
let rule_step =
7474
match rules with
@@ -110,7 +110,7 @@ let main rules providers reporters stdin filelist print_ast strict strict_parse
110110
let neal =
111111
let doc = "Not Exactly A Linter" in
112112
Term.(ret (const main $ rules $ providers $ reporters $ stdin $ filelist $ print_ast $ strict $ strict_parse $ files)),
113-
Term.info "neal" ~version:"0.2.4" ~doc
113+
Term.info "neal" ~version:"0.2.6" ~doc
114114

115115
let test =
116116
let doc = "A list of rules to be tested" in

src/core/neal.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,14 @@ end
230230
module Utils = struct
231231
let neal_root =
232232
IFDEF RELATIVE_LIB_PATH THEN
233-
let exec_path = Core.Std.Filename.realpath Sys.executable_name in
233+
let exec_path = Core.Filename.realpath Sys.executable_name in
234234
let _build = Filename.dirname exec_path in
235235
Filename.concat _build RELATIVE_LIB_PATH
236236
ELSE
237237
IFDEF LIB_PATH THEN
238238
LIB_PATH
239239
ELSE
240-
let exec_path = Core.Std.Filename.realpath Sys.executable_name in
240+
let exec_path = Core.Filename.realpath Sys.executable_name in
241241
let _build = Filename.dirname exec_path in
242242
let neal = Filename.dirname _build in
243243
Filename.dirname neal

src/opam/META

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
description = "Automate your code reviews with custom syntactic rules"
2-
version = "0.2.4"
2+
version = "0.2.6"
33

44
package "fs" (
55
requires = "core str"

src/opam/opam

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
opam-version: "1.2"
22
name: "neal"
3-
version: "0.2.4"
3+
version: "0.2.6"
44
maintainer: "Tadeu Zagallo <[email protected]>"
55
author: "Tadeu Zagallo <[email protected]>"
66
license: "MIT"
@@ -16,7 +16,7 @@ depends: [
1616
"core"
1717
"menhir"
1818
"yojson"
19-
"bisect_ppx" { = "1.3.4" }
19+
"bisect_ppx" { = "2.8.0" }
2020
"bisect_ppx-ocamlbuild"
2121
]
2222
build: [
@@ -34,4 +34,4 @@ remove: [
3434
["rm" "-r" "%{prefix}%/lib/neal/reporters"]
3535
["opam" "exec" "--" "ocamlfind" "remove" "neal"]
3636
]
37-
available: [ ocaml-version >= "4.04.0" ]
37+
available: [ ocaml-version >= "4.13.1" ]

0 commit comments

Comments
 (0)